Skip to contents

The Squareplus activation function is defined as:

f(x) = (x + sqrt(x^2 + b)) / 2

Where b is a smoothness parameter.

Usage

activation_squareplus(x, b = 4L)

Arguments

x

Input tensor.

b

Smoothness parameter. Defaults to 4.

Value

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