U
- data type for out()
output@Operator(group="dtypes") 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 wrapping a new Complex operation.
|
Output<U> |
out() |
equals, hashCode, op, toString
public static <U,T extends Number> Complex<U> create(Scope scope, Operand<T> real, Operand<T> imag, Class<U> Tout)
scope
- current scopereal
- imag
- Tout
- public Output<U> 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<U>
OperationBuilder.addInput(Output)
Copyright © 2022. All rights reserved.