テンソルフロー::作戦::サイン

#include <math_ops.h>

数値の符号を要素ごとに示す値を返します。

まとめ

x < 0の場合、 y = sign(x) = -1 ; x == 0の場合は 0 ; x > 0の場合は 1。

複素数の場合、 y = sign(x) = x / |x| x != 0の場合、それ以外の場合はy = 0です。

引数:

戻り値:

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

Sign (const :: tensorflow::Scope & scope, :: tensorflow::Input x)

パブリック属性

operation
y

公共機能

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

パブリック属性

手術

Operation operation

y

::tensorflow::Output y

公共機能

サイン

 Sign(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input x
)

ノード

::tensorflow::Node * node() const 

演算子::tensorflow::入力

 operator::tensorflow::Input() const 

演算子::tensorflow::出力

 operator::tensorflow::Output() const