Run
import torch #create tensor with random data, and multiply with a scalar rand_tensor = 8*torch.rand((2, 5)) #print tensor print(rand_tensor)
Output