@Namespace(value="tensorflow::ops") @NoOffset @Properties(inherit=tensorflow.class) public class Complex extends Pointer
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]]
Arguments:
* scope: A Scope object
Returns:
* Output
: The out tensor.Modifier and Type | Class and Description |
---|---|
static class |
Complex.Attrs
Optional attribute setters for Complex
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
Complex(Pointer p)
Pointer cast constructor.
|
Complex(Scope scope,
Input real,
Input imag) |
Complex(Scope scope,
Input real,
Input imag,
Complex.Attrs attrs) |
Modifier and Type | Method and Description |
---|---|
Input |
asInput() |
Output |
asOutput() |
Node |
node() |
Operation |
operation() |
Complex |
operation(Operation setter) |
Output |
out() |
Complex |
out(Output setter) |
static Complex.Attrs |
Tout(int x) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public Complex(Pointer p)
Pointer(Pointer)
.public Node node()
@ByVal public static Complex.Attrs Tout(@Cast(value="tensorflow::DataType") int x)
Copyright © 2022. All rights reserved.