tfl.utils.canonicalize_input_bounds

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

input_bounds The input_min or input_max hyperparameter of tfl.layers.Linear layer.

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

ValueError If one of elements in input_bounds is not a float, None or 'none'.