Module validation

Module validation 

Source
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