T
- data type for y()
output@Operator(group="math") public final class Expm1<T> extends PrimitiveOp implements Operand<T>
i.e. `exp(x) - 1` or `e^(x) - 1`, where `x` is the input tensor. `e` denotes Euler's number and is approximately equal to 2.718281.
x = tf.constant(2.0)
tf.math.expm1(x) ==> 6.389056
x = tf.constant([2.0, 8.0])
tf.math.expm1(x) ==> array([6.389056, 2979.958], dtype=float32)
x = tf.constant(1 + 1j)
tf.math.expm1(x) ==> (0.46869393991588515+2.2873552871788423j)
operation
Modifier and Type | Method and Description |
---|---|
Output<T> |
asOutput()
Returns the symbolic handle of a tensor.
|
static <T> Expm1<T> |
create(Scope scope,
Operand<T> x)
Factory method to create a class wrapping a new Expm1 operation.
|
Output<T> |
y() |
equals, hashCode, op, toString
public static <T> Expm1<T> create(Scope scope, Operand<T> x)
scope
- current scopex
- public Output<T> asOutput()
Operand
Inputs to TensorFlow operations are outputs of another TensorFlow operation. This method is used to obtain a symbolic handle that represents the computation of the input.
asOutput
in interface Operand<T>
OperationBuilder.addInput(Output)
Copyright © 2022. All rights reserved.