Floating-point numbers give neural networks a practical way to encode real-world data and transform it through successive representations. Inputs, intermediate features, and outputs are typically stored as numeric values in tensors. section 3.1 section 3.0
In PyTorch, floating-point values are used to represent:
- Image information, including pixel values and learned features such as edges, textures, ears, noses, and eyes. section 3.1 section 4.8
- Numerical columns from tables, such as measurements that neural networks process through matrix multiplication and nonlinear functions. section 4.3
- Intermediate representations whose values depend on both the input and the preceding layer’s weights. section 3.1
Choosing a tensor numeric type
Neural-network computation typically uses float32. Float64 generally increases memory use and computation time without improving model accuracy, while float16 can reduce memory use with a minor accuracy effect. section 3.6.2 section 3.6.2



















