U - data type for y() output@Operator(group="math") public final class ComplexAbs<U extends java.lang.Number> extends PrimitiveOp implements Operand<U>
Given a tensor `x` of complex numbers, this operation returns a tensor of type `float` or `double` that is the absolute value of each element in `x`. All elements in `x` must be complex numbers of the form \\(a + bj\\). The absolute value is computed as \\( \sqrt{a^2 + b^2}\\).
operation| Modifier and Type | Method | Description |
|---|---|---|
Output<U> |
asOutput() |
Returns the symbolic handle of a tensor.
|
static <T> ComplexAbs<java.lang.Float> |
create(Scope scope,
Operand<T> x) |
Factory method to create a class to wrap a new ComplexAbs operation to the graph, using default output types.
|
static <U extends java.lang.Number,T> |
create(Scope scope,
Operand<T> x,
java.lang.Class<U> Tout) |
Factory method to create a class to wrap a new ComplexAbs operation to the graph.
|
Output<U> |
y() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitequals, hashCode, toStringpublic static <U extends java.lang.Number,T> ComplexAbs<U> create(Scope scope, Operand<T> x, java.lang.Class<U> Tout)
scope - current graph scopex - Tout - public static <T> ComplexAbs<java.lang.Float> create(Scope scope, Operand<T> x)
scope - current graph scopex - public Output<U> asOutput()
OperandInputs 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<U extends java.lang.Number>OperationBuilder.addInput(Output)