View source on GitHub |
Converts string constant 'none' representing unspecified bound into None.
tfl.utils.canonicalize_input_bounds(
input_bounds
)
Args | |
---|---|
input_bounds
|
The input_min or input_max hyperparameter of
tfl.layers.Linear layer.
|
Returns | |
---|---|
A list of [val, val, ...] where val can be a float or None, or the value None if input_bounds is None. |
Raises | |
---|---|
ValueError
|
If one of elements in input_bounds is not a float, None or 'none'. |