lab01-1 Tensor Manipulation

1D Array with NumPy

2D Array with NumPy

1D Array with PyTorch

2D Array with PyTorch

Broadcasting

Multiplication vs Matrix Multiplication

Mean

Sum

Max and Argmax

Max() returns one value if it is called without an argument.

max() return 2 values when called with dimension specified. The first value is the maximum value,

and the second value is the argmax(the index of the element with maximum value).