Structure

BNNSActivationFunction

A structure that contains layer functions.

Declaration

struct BNNSActivationFunction

Topics

Activation Functions

static var abs: BNNSActivationFunction

An activation function that returns the absolute value of its input.

static var clamp: BNNSActivationFunction

An activation function that returns its input clamped to a specified range.

static var identity: BNNSActivationFunction

An activation function that returns its input.

static var integerLinearSaturate: BNNSActivationFunction

An activation function that returns an arithmetic shift, preserving sign.

static var integerLinearSaturatePerChannel: BNNSActivationFunction

An activation function that returns an arithmetic shift, preserving sign for each channel.

static var leakyRectifiedLinear: BNNSActivationFunction

An activation function that returns its input when the input is greater than or equal to zero, otherwise it returns its input multiplied by a specified value.

static var linear: BNNSActivationFunction

An activation function that returns its input multplied by a specified value.

static var rectifiedLinear: BNNSActivationFunction

An activation function that returns its input when the input is greater than or equal to zero, otherwise it returns zero.

static var scaledTanh: BNNSActivationFunction

An activation function that returns the scaled hyperbolic tangent of its input.

static var sigmoid: BNNSActivationFunction

An activation function that returns the sigmoid function of its input.

static var softmax: BNNSActivationFunction

An activation function that returns the softmax function of its input.

static var tanh: BNNSActivationFunction

An activation function that returns the hyperbolic tangent of its input.

Relationships

See Also

Activation Layers

struct BNNSActivation

A structure containing common activation function parameters.