U - data type for y() output@Operator public final class ComplexAbs<U extends 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 and Description |
|---|---|
Output<U> |
asOutput()
Returns the symbolic handle of a tensor.
|
static <T> ComplexAbs<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 Number,T> |
create(Scope scope,
Operand<T> x,
Class<U> Tout)
Factory method to create a class to wrap a new ComplexAbs operation to the graph.
|
Output<U> |
y() |
equals, hashCode, toStringpublic static <U extends Number,T> ComplexAbs<U> create(Scope scope, Operand<T> x, Class<U> Tout)
scope - current graph scopex - Tout - public static <T> ComplexAbs<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 Number>OperationBuilder.addInput(Output)Copyright © 2015–2019. All rights reserved.