Skip to content

Latest commit

 

History

History
42 lines (26 loc) · 965 Bytes

PowerLayer.md

File metadata and controls

42 lines (26 loc) · 965 Bytes

CPowerLayer Class

This class implements a layer that raises each element of the input to the given power.

The activation function is calculated according to the formula:

f(x) = pow(x, GetExponent())

Settings

Exponent

void SetExponent( float exponent );

Sets the power to which the input elements will be raised.

Trainable parameters

There are no trainable parameters for this layer.

Inputs

There is only one input, which accepts a data blob of arbitrary size.

Outputs

There is only one output, which returns a blob of the same size as the input blob. Each element of the output contains the value of the activation function calculated on the corresponding element of the input.