Learn practical skills, build real-world projects, and advance your career

Array operations in PyTorch

(Szabó Sándor, 27. May 2020)

We will consider some common operations for matrices:

  • multiplication
  • transpose
  • gradient
  • eigenvalues, eigenvectors
  • least square norm

# Uncomment the command below if PyTorch is not installed
# !conda install pytorch cpuonly -c pytorch -y
# Import torch and other required modules
import torch

Multiplication