# Module: tfl.utils

<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) |

Helpers shared by multiple modules in TFL.

## Functions

[`canonicalize_convexity(...)`](https://www.tensorflow.org/lattice/api_docs/python/tfl/utils/canonicalize_convexity): Converts string constants representing convexity into integers.

[`canonicalize_input_bounds(...)`](https://www.tensorflow.org/lattice/api_docs/python/tfl/utils/canonicalize_input_bounds): Converts string constant 'none' representing unspecified bound into None.

[`canonicalize_monotonicities(...)`](https://www.tensorflow.org/lattice/api_docs/python/tfl/utils/canonicalize_monotonicities): Converts string constants representing monotonicities into integers.

[`canonicalize_monotonicity(...)`](https://www.tensorflow.org/lattice/api_docs/python/tfl/utils/canonicalize_monotonicity): Converts string constants representing monotonicity into integers.

[`canonicalize_trust(...)`](https://www.tensorflow.org/lattice/api_docs/python/tfl/utils/canonicalize_trust): Converts string constants representing trust direction into integers.

[`canonicalize_unimodalities(...)`](https://www.tensorflow.org/lattice/api_docs/python/tfl/utils/canonicalize_unimodalities): Converts string constants representing unimodalities into integers.

[`count_non_zeros(...)`](https://www.tensorflow.org/lattice/api_docs/python/tfl/utils/count_non_zeros): Returns total number of non 0 elements in given iterables.

<br />

<br />

<br />

| ## Other Members ||
|---|---|
| absolute_import | Instance of `__future__._Feature` |
| division | Instance of `__future__._Feature` |
| print_function | Instance of `__future__._Feature` |

<br />