PyTorch Tensors

One of Pytorchs key features is its ability to deal with tensors

The following script demonstrates creating a tensor in Pytorch.

import torch tensor = torch.tensor([[1,0],[2,3]]) #change an element of the tensor tensor[0][1] = 5