# tfl.utils.canonicalize_input_bounds

<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/utils.py#L55-L82) |

Converts string constant 'none' representing unspecified bound into None.

    tfl.utils.canonicalize_input_bounds(
        input_bounds
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `input_bounds` | The input_min or input_max hyperparameter of [`tfl.layers.Linear`](https://www.tensorflow.org/lattice/api_docs/python/tfl/layers/Linear) layer. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A list of \[val, val, ...\] where val can be a float or None, or the value None if input_bounds is None. ||

<br />

<br />

<br />

<br />

| ## Raises ||
|---|---|
| `ValueError` | If one of elements in input_bounds is not a float, None or 'none'. |

<br />