![]() |
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
get_config
get_config()
Standard Keras config for serialization.
__call__
__call__(
w
)
Applies constraints to w.