Exponential

public class Exponential

Exponential activation function.

For example:

   Operand<TFloat32> input = tf.constant(
          new float[] {-3.0f,-1.0f, 0.0f,1.0f,3.0f});
   Exponential<TFloat32> exp = new Exponential<>(tf);
   Operand<TFloat32> result = exp.call(input);
   // result is [0.04978707f,  0.36787945f,  1.f,  2.7182817f, 20.085537f]
 

Public Constructors

Exponential (Ops tf)
Creates an Exponential activation.

Public Methods

Operand <T>
call ( Operand <T> input)
Calculates the Exponential activation.

Inherited Methods

Public Constructors

public Exponential (Ops tf)

Creates an Exponential activation.

Parameters
tf the TensorFlow Ops

Public Methods

public Operand <T> call ( Operand <T> input)

Calculates the Exponential activation.

Parameters
input the input tensor
Returns
  • an Operand for the exponential activation: exp(x) .