Replies: 1 comment
-
|
A shape [1, 3, 3] in PyTorch means 1 → first dimension (batch or outermost) 3 → second dimension (rows) 3 → third dimension (columns) The books might display [rows x columns] without the batch dimension, which appears "swapped" because of this. You can access properties such as: X [0 : 1 : 2] 0th batch, 1st row,So PyTorch is always counting the dimensions from outermost to innermost. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
hello
The tensor ndim is [1,3,3] and in the book shows the 1 dimension is first [ ], but for the first dimension it should be the second [ ]
Beta Was this translation helpful? Give feedback.
All reactions