Missed TensorFlow Dev Summit? Check out the video playlist. Watch recordings

tfl.linear_lib.canonicalize_input_bounds

View source on GitHub

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

tfl.linear_lib.canonicalize_input_bounds(
    input_bounds
)

Args:

  • input_bounds: input_min or input_max hyperparameter of Linear layer.

Raises:

ValueError if one of elements in input_bounds is invalid.

Returns:

input_bounds represented as float or None.