Module: tfl.utils

Helpers shared by multiple modules in TFL.

Functions

canonicalize_convexity(...): Converts string constants representing convexity into integers.

canonicalize_input_bounds(...): Converts string constant 'none' representing unspecified bound into None.

canonicalize_monotonicities(...): Converts string constants representing monotonicities into integers.

canonicalize_monotonicity(...): Converts string constants representing monotonicity into integers.

canonicalize_trust(...): Converts string constants representing trust direction into integers.

canonicalize_unimodalities(...): Converts string constants representing unimodalities into integers.

count_non_zeros(...): Returns total number of non 0 elements in given iterables.

absolute_import Instance of __future__._Feature
division Instance of __future__._Feature
print_function Instance of __future__._Feature