Replies: 2 comments
|
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. |
|
@nikhilww3 P.S. |
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 [ ]
All reactions