tensorflow:: ops:: Real

#include <math_ops.h>

複素数の実数部を返します。

まとめ

複素数のテンソルinputが与えられると、この操作はinputの各要素の実部であるfloat型のテンソルを返します。 inputのすべての要素は、次の形式の複素数である必要があります。 \(a + bj\)ここで、 aはこの演算によって返される実数部であり、 bは虚数部である。

例えば:

# tensor 'input' is [-2.25 + 4.75j, 3.25 + 5.75j]
tf.real(input) ==> [-2.25, 3.25]

議論:

返品:

  • Output :出力テンソル。

コンストラクターとデストラクタ

Real (const :: tensorflow::Scope & scope, :: tensorflow::Input input)
Real (const :: tensorflow::Scope & scope, :: tensorflow::Input input, const Real::Attrs & attrs)

公開属性

operation
output

公的機能

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

パブリック静的関数

Tout (DataType x)

構造

tensorflow:: ops:: Real:: Attrs

Realのオプションの属性設定子。

公開属性

手術

Operation operation

出力

::tensorflow::Output output

公的機能

本物

 Real(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input
)

本物

 Real(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  const Real::Attrs & attrs
)

ノード

::tensorflow::Node * node() const 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const 

パブリック静的関数

トゥート

Attrs Tout(
  DataType x
)