Skip to contents

It is defined as

f(x) = 0 for x <= -1, f(x) = 0.5 * (x + 1) for -1 < x < 1, f(x) = 1 for x >= 1.

Usage

activation_sparse_sigmoid(x)

Arguments

x

Input tensor.

Value

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