Skip to contents

It is defined as:

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

Usage

activation_threshold(x, threshold, default_value)

Arguments

x

Input tensor.

threshold

The value that decides when to retain or replace x.

default_value

Value to assign when x <= threshold.

Value

A tensor, the result from applying the activation to the input tensor x.