# tfl.kronecker_factored_lattice_lib.finalize_scale_constraints

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/lattice/blob/v2.1.1/tensorflow_lattice/python/kronecker_factored_lattice_lib.py#L447-L469) |

Clips scale to strictly satisfy all constraints.

    tfl.kronecker_factored_lattice_lib.finalize_scale_constraints(
        scale, output_min, output_max
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `scale` | Scale variable of shape: `(units, num_terms)`. |
| `output_min` | None or minimum layer output. |
| `output_max` | None or maximum layer output. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| Clipped scale tensor of same shape as `scale`. ||

<br />