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

org.tensorflow.framework.activations.Activation
abstract Operand<T>
call(Operand<T> input)
Gets the calculation operation for the activation.
boolean
equals(Object arg0)
final Class<?>
getClass()
int
hashCode()
final void
notify()
final void
notifyAll()
String
toString()
final void
wait(long arg0, int arg1)
final void
wait(long arg0)
final void
wait()

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).