Skip to contents

SparsePlus is defined as:

sparse_plus(x) = 0 for x <= -1. sparse_plus(x) = (1/4) * (x + 1)^2 for -1 < x < 1. sparse_plus(x) = x for x >= 1.

Usage

activation_sparse_plus(x)

Arguments

x

Input tensor.

Value

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