View source on GitHub |
Clips scale to strictly satisfy all constraints.
tfl.kronecker_factored_lattice_lib.finalize_scale_constraints(
scale, output_min, output_max
)
Args | |
---|---|
scale
|
Scale variable of shape: (units, num_terms) .
|
output_min
|
None or minimum layer output. |
output_max
|
None or maximum layer output. |
Returns | |
---|---|
Clipped scale tensor of same shape as scale .
|