Learn practical skills, build real-world projects, and advance your career
Updated 4 years ago
Title Here
Subtitle Here
An short introduction about PyTorch and about the chosen functions.
- function 1
- function 2
- function 3
- function 4
- function 5
# Import torch and other required modules
import torch
import numpy as np
Function 1 - torch.int16
16-bit integer (signed)
# Example 1 - working (change this)
torch.tensor([[1,2],[3,4]], dtype=torch.int16)
tensor([[1, 2],
[3, 4]], dtype=torch.int16)
define a tensor object using torch.int16, meaning each element is a 16-bit integer