Summary of AI Learning Catalog
1. Scalar
1.1 Introduction
A scalar is a common single number (including integers, decimals, etc.), which can be represented by a tensor with only one element
1.2 Representation method
Use lowercase letters, such as: x, y, z
1.3 Program example
import torch
x = torch.tensor(8.0)
y = torch.tensor(3.0)
x + y