U - data type for out() output@Operator public final class Complex<U> extends PrimitiveOp implements Operand<U>
Given a tensor `real` representing the real part of a complex number, and a tensor `imag` representing the imaginary part of a complex number, this operation returns complex numbers elementwise of the form \\(a + bj\\), where a represents the `real` part and b represents the `imag` part.
The input tensors `real` and `imag` must have the same shape.
For example:
# tensor 'real' is [2.25, 3.25]
# tensor `imag` is [4.75, 5.75]
tf.complex(real, imag) ==> [[2.25 + 4.75j], [3.25 + 5.75j]]
operation| Modifier and Type | Method and Description |
|---|---|
Output<U> |
asOutput()
Returns the symbolic handle of a tensor.
|
static <U,T extends Number> |
create(Scope scope,
Operand<T> real,
Operand<T> imag,
Class<U> Tout)
Factory method to create a class to wrap a new Complex operation to the graph.
|
Output<U> |
out() |
equals, hashCode, toStringpublic static <U,T extends Number> Complex<U> create(Scope scope, Operand<T> real, Operand<T> imag, Class<U> Tout)
scope - current graph scopereal - imag - Tout - 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>OperationBuilder.addInput(Output)Copyright © 2015–2019. All rights reserved.