Avisek Gupta

Indian Statistical Institute, Kolkata







Tutorial 1: Working with Tensors in PyTorch






1. Different ways of intitializing tensors -



2. Different ways of adding two vectors -



3. General Tensor operations -



4. Converting Tensors from Torch to Numpy Arrays, and back -



5. Running code on the CUDA device -



Recap:

1. Different ways of intitializing tensors

2. Different ways of performing an operation between two vectors

3. General Tensor operations

4. Converting Tensors from Torch to Numpy Arrays, and back

5. Running PyTorch on the CUDA device




References: