Imag
tensorflow C++ API
Returns the imaginary part of a complex number.
Summary
Given a tensorinput
of complex numbers, this operation returns a tensor of typefloat
that is the imaginary part of each element ininput
.Allelements ininput
must be complex numbers of the form \(a + bj\), whereais the real part andbis the imaginary part returned by this operation.
For example:
``` tensor 'input' is [-2.25 + 4.75j, 3.25 + 5.75j]
tf.imag(input) ==> [4.75, 5.75] ```
Arguments:
- scope: A Scope object
Returns:
Output
: The output tensor.
Constructor
- Imag(const ::tensorflow::Scope & scope, ::tensorflow::Input input, const Imag::Attrs & attrs)
Public attributes
- tensorflow::Output output.
Imag block
Source link : https://github.com/EXPNUNI/enuSpaceTensorflow/blob/master/enuSpaceTensorflow/tf_math.cpp
Argument:
- Scope scope : A Scope object (A scope is generated automatically each page. A scope is not connected.).
- Input input : connect Input node.
- Imag::Attrs & attrs : Input DataType. ex)Tout_ = DT_DOUBLE;
Return:
- Output output : Output object of Imag class object.
Result:
- std::vector(Tensor) product_result : Returned object of executed result by calling session.