# tfl.cdf_layer.create_kernel_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/cdf_layer.py#L272-L288) |

Returns a kernel Keras initializer object from its id.

    tfl.cdf_layer.create_kernel_initializer(
        kernel_initializer_id
    )

This function is used to convert the 'kernel_initializer' parameter in the
constructor of [`tfl.layers.CDF`](https://www.tensorflow.org/lattice/api_docs/python/tfl/layers/CDF) into the corresponding initializer object.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `kernel_initializer_id` | See the documentation of the 'kernel_initializer' parameter in the constructor of [`tfl.layers.CDF`](https://www.tensorflow.org/lattice/api_docs/python/tfl/layers/CDF). |

<br />

<br />

<br />

<br />

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

<br />