tensorflow :: ops :: Real
#include <math_ops.h>
Zwraca część rzeczywistą liczby zespolonej.
streszczenie
Biorąc pod uwagę tensorowe input
liczb zespolonych, ta operacja zwraca tensor typu float
który jest rzeczywistą częścią każdego elementu w input
. Wszystkie elementy input
muszą być liczbami zespolonymi w postaci \(a + bj\), gdzie a jest częścią rzeczywistą zwracaną przez tę operację, a b jest częścią urojoną.
Na przykład:
# tensor 'input' is [-2.25 + 4.75j, 3.25 + 5.75j] tf.real(input) ==> [-2.25, 3.25]
Argumenty:
- zakres: obiekt Scope
Zwroty:
-
Output
: tensor wyjściowy.
Konstruktorzy i niszczyciele | |
---|---|
Real (const :: tensorflow::Scope & scope, :: tensorflow::Input input) | |
Real (const :: tensorflow::Scope & scope, :: tensorflow::Input input, const Real::Attrs & attrs) |
Atrybuty publiczne | |
---|---|
operation | |
output |
Funkcje publiczne | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
Publiczne funkcje statyczne | |
---|---|
Tout (DataType x) |
Struktury | |
---|---|
tensorflow :: ops :: Real :: Attrs | Opcjonalne ustawienia atrybutów dla wartości rzeczywistej . |
Atrybuty publiczne
operacja
Operation operation
wynik
::tensorflow::Output output
Funkcje publiczne
Real
Real( const ::tensorflow::Scope & scope, ::tensorflow::Input input )
Real
Real( const ::tensorflow::Scope & scope, ::tensorflow::Input input, const Real::Attrs & attrs )
węzeł
::tensorflow::Node * node() const
operator :: tensorflow :: Input
operator::tensorflow::Input() const
operator :: tensorflow :: Output
operator::tensorflow::Output() const
Publiczne funkcje statyczne
Naganiacz
Attrs Tout( DataType x )