tensorflow:: ops:: 角度

#include <math_ops.h>

複素数の引数を返します。

まとめ

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

この操作によって返される引数は次の形式です。 \(atan2(b, a)\)。

例えば:

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

(numpy) np.angle と同等です。

議論:

返品:

  • Output :出力テンソル。

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

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

公開属性

operation
output

公的機能

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

パブリック静的関数

Tout (DataType x)

構造

tensorflow:: ops:: Angle:: Attrs

Angleのオプション属性セッター。

公開属性

手術

Operation operation

出力

::tensorflow::Output output

公的機能

角度

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

角度

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

ノード

::tensorflow::Node * node() const 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const 

パブリック静的関数

トゥート

Attrs Tout(
  DataType x
)