Learn practical skills, build real-world projects, and advance your career
Updated 4 years ago
WHAT IS PYTORCH?
It’s a Python-based scientific computing package targeted at two sets of audiences:
A replacement for NumPy to use the power of GPUs
A deep learning research platform that provides maximum flexibility and speed
import torch
x = torch.rand(5, 3)
print(x)
x = torch.zeros(5, 3, dtype=torch.long)
print(x)