Beta
Table of Contents
The outline of your notebook will show up here. You can include headings in any text cell by starting a line with #
, ##
, ###
, etc., depending on the desired title hierarchy.
Import torch and create tensor
# Import PyTorch
import torch
list_a = [1, 2, 3, 4]
# Create a tensor from list_a
tensor_a = torch.tensor(list_a)
print(tensor_a)