PyTorch fundamentals - What is squarebrackets changes? #954
Replies: 3 comments
-
As it's currently written it's not that clear to me what do you mean with 'what changes in "Background"'. If so, here's a StackOverflow link I've found useful: https://stackoverflow.com/questions/49724954/how-are-pytorchs-tensors-implemented |
Beta Was this translation helpful? Give feedback.
-
explain further with example... |
Beta Was this translation helpful? Give feedback.
-
Hi Ilya! Understanding how dimensions and shapes of tensors work in PyTorch is crucial for building and debugging neural networks. Tensor Dimensions and ShapesIn PyTorch, tensors are multi-dimensional arrays, and their dimensions (also called ranks) are determined by the number of square brackets you use. Here are a few examples to illustrate:
Adding Dimensions with Square BracketsWhen you add square brackets around a tensor, you are essentially creating a new dimension:
Using
|
Beta Was this translation helpful? Give feedback.
-
Hello, My name is Ilya.
I am on 20th video of "Learn PyTorch. Become a Deep Learning Engineer. Get Hired. course."
And I understand that square brackets change amount of dimensions, but I could just add a new pair of square brackets, and I don`t know what changes in "Background".
Beta Was this translation helpful? Give feedback.
All reactions