UNDERSTANDING TENSOR SHAPES, LEC - 20, INTRODUCTION TO TENSORS #1298
Answered
by
mwael-labs
Manmath0108
asked this question in
Q&A
|
if |
Answered by
mwael-labs
Jan 7, 2026
Replies: 1 comment
|
the numbers inside
|
0 replies
Answer selected by
Manmath0108
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
the numbers inside
torch.Sizejust describe the shape of the tensor.torch.Size([1, 3, 3])→ a batch of 1 matrix with shape 3 * 3.torch.Size([1, 1, 3, 3])→ a batch of 1 image, with 1 channel (grayscale), and spatial size 3 * 3.torch.Size([1, 1, 4, 4])→ same idea, but the image is 4 * 4 instead of 3 * 3.