tf.keras.activations.threshold

Threshold activation function.

It is defined as:

threshold(x) = x if x > threshold, threshold(x) = default_value otherwise.

x Input tensor.
threshold The value that decides when to retain or replace x.
default_value Value to assign when x <= threshold.