tensorflow:: ops:: ComplexAbs
#include <math_ops.h>
Computes the complex absolute value of a tensor.
Summary
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}\).
For example:
x = tf.complex(3.0, 4.0) print((tf.raw_ops.ComplexAbs(x=x, Tout=tf.dtypes.float32, name=None)).numpy()) 5.0
Args:
- scope: A Scope object
Returns:
Output
: The y tensor.
Constructors and Destructors |
|
---|---|
ComplexAbs(const ::tensorflow::Scope & scope, ::tensorflow::Input x)
|
|
ComplexAbs(const ::tensorflow::Scope & scope, ::tensorflow::Input x, const ComplexAbs::Attrs & attrs)
|
Public attributes |
|
---|---|
operation
|
|
y
|
Public functions |
|
---|---|
node() const
|
::tensorflow::Node *
|
operator::tensorflow::Input() const
|
|
operator::tensorflow::Output() const
|
|
Public static functions |
|
---|---|
Tout(DataType x)
|
Structs |
|
---|---|
tensorflow:: |
Optional attribute setters for ComplexAbs. |
Public attributes
operation
Operation operation
y
::tensorflow::Output y
Public functions
ComplexAbs
ComplexAbs( const ::tensorflow::Scope & scope, ::tensorflow::Input x )
ComplexAbs
ComplexAbs( const ::tensorflow::Scope & scope, ::tensorflow::Input x, const ComplexAbs::Attrs & attrs )
node
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
Public static functions
Tout
Attrs Tout( DataType x )