# tfl.kronecker_factored_lattice_layer.create_scale_initializer

<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_layer.py#L418-L446) |

Returns a scale Keras initializer object from its id.

    tfl.kronecker_factored_lattice_layer.create_scale_initializer(
        scale_initializer_id, output_min, output_max
    )

This function is used to convert the 'scale_initializer' parameter in the
constructor of tfl.layers.KroneckerFactoredLattice into the corresponding
initializer object.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `scale_initializer_id` | See the documentation of the 'scale_initializer' parameter in the constructor of [`tfl.layers.KroneckerFactoredLattice`](https://www.tensorflow.org/lattice/api_docs/python/tfl/layers/KroneckerFactoredLattice). |
| `output_min` | See the documentation of the same parameter in the constructor of [`tfl.layers.KroneckerFactoredLattice`](https://www.tensorflow.org/lattice/api_docs/python/tfl/layers/KroneckerFactoredLattice). |
| `output_max` | See the documentation of the same parameter in the constructor of [`tfl.layers.KroneckerFactoredLattice`](https://www.tensorflow.org/lattice/api_docs/python/tfl/layers/KroneckerFactoredLattice). |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| The Keras initializer object for the [`tfl.layers.KroneckerFactoredLattice`](https://www.tensorflow.org/lattice/api_docs/python/tfl/layers/KroneckerFactoredLattice) scale variable. ||

<br />