"""Run with: python3 examples/pytorch_tensors.py"""
import torch

inputs = torch.tensor([[1.0], [2.0], [3.0]])
print([1.0, 2.0, 3.0] * 2)  # a Python list repeats itself
print(inputs * 2)           # a tensor doubles every number
print(inputs.shape)
print(inputs[0])
print(inputs[0, 0].item())
print(inputs.dtype, inputs.device)  # the defaults: float32, on the CPU
