A scalar is a single value, such as one number or one string, that can be represented as a rank-0 tensor. In machine learning systems, scalars are often used for individual measurements, parameters, losses, or metric values.
A single number or a single string that can be represented as a tensor of rank 0. For example, the following lines of code each create one scalar in TensorFlow: