3.3. unit_scaling.constraints
Common scale-constraints used in unit-scaled operations.
Type Aliases
Functions
|
Computes the arithmetic mean of the provided scales. |
|
Retrieves the constraint function corresponding to constraint_name and applies it to the group of scales. |
|
Computes the geometric mean of the provided scales. |
|
Computes the harmonic mean of the provided scales. |
|
Assumes two provided scales: (output_scale, grad_input_scale). |
|
Assumes three provided scales: (output_scale, left_grad_scale, right_grad_scale). |
|
Assumes an output scale is provided and any number of grad input scales: (output_scale, *grad_input_scales). |
|
Assumes three provided scales: (output_scale, left_grad_scale, right_grad_scale). |