Expand description
Input validation utilities for Python bindings
Functionsยง
- validate_
betas - Validate beta parameters for Adam-like optimizers
- validate_
broadcast_ shapes - Validate that dimensions are compatible for broadcasting
- validate_
dimension - Validate that a dimension index is valid for a tensor
- validate_
epsilon - Validate that epsilon is positive
- validate_
index - Validate that an index is within bounds for a given dimension
- validate_
learning_ rate - Validate that a learning rate is positive
- validate_
momentum - Validate that momentum is in valid range [0, 1]
- validate_
parameters_ not_ empty - Validate that parameters list is not empty
- validate_
shape - Validate that a shape is valid (all dimensions > 0)
- validate_
tensor_ shapes_ match - Validate that tensor dimensions match for operations
- validate_
weight_ decay - Validate that weight decay is non-negative