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

tfl.pwl_calibration_layer.NaiveBoundsConstraints

View source on GitHub

Naively clips all elements of tensor to be within bounds.

tfl.pwl_calibration_layer.NaiveBoundsConstraints(
    lower_bound=None, upper_bound=None
)

This constraint is used only for the weight tensor for missing output value.

Args:

  • lower_bound: Lower bound to clip variable values to.
  • upper_bound: Upper bound to clip variable values to.

Methods

__call__

View source

__call__(
    w
)

Applies constraints to w.

get_config

View source

get_config()

Standard Keras config for serialization.