Learn practical skills, build real-world projects, and advance your career
Updated 4 years ago
Julian Assignment 1
Subtitle Here
An short introduction about PyTorch and about the chosen functions.
- dtype
- function 2
- function 3
- function 4
- function 5
# Import torch and other required modules
import torch
Function 1 - torch.tensor (change this)
Add some explanations
# Example 1 - this prints out the type of the current tensor which is float32
import torch
x = torch.tensor([[1, 2], [3, 4.]])
print(x.dtype)
torch.float32
Explanation about example