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

tfl.pwl_calibration_lib.canonicalize_convexity

View source on GitHub

Converts string constants representing convexity into integers.

tfl.pwl_calibration_lib.canonicalize_convexity(
    convexity
)

Args:

  • convexity: convexity hyperparameter of PWLCalibration layer.

Raises:

ValueError if convexity is invalid.

Returns:

convexity represented as -1, 0 or 1.