Shape Suffixes – Good Coding Style
3 days ago
- #Coding Style
- #Machine Learning
- #Tensor Naming
- Use single-letter dimension suffixes in tensor names to indicate shape, e.g., B for batch, L for sequence length.
- Document dimension conventions in code for clarity and consistency across projects.
- Apply shape suffixes with frameworks like PyTorch or JAX to enhance code readability and maintainability.