public class
Tanh
Hyperbolic tangent activation function.
For example:
Operand<TFloat32> input = tf.constant(new float[] {-3.0f,-1.0f, 0.0f, 1.0f, 3.0f}); Tanh<TFloat32> tanh = new Tanh<>(tf); Operand<TFloat32> result = tanh.call(input); // result = [-0.9950547f, -0.7615942f, 0.f, 0.7615942f, 0.9950547f]
Public Constructors
Tanh(Ops tf)
Creates a Hyperbolic tangent activation.
|
Public Methods
Inherited Methods
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 Tanh (Ops tf)
Creates a Hyperbolic tangent activation.
Parameters
tf | the TensorFlow Ops |
---|