tensor akışı:: işlem:: İmza

#include <math_ops.h>

Bir sayının işaretinin öğe bazında gösterimini döndürür.

Özet

y = sign(x) = -1 eğer x < 0 ise; 0 eğer x == 0 ise; x > 0 ise 1.

Karmaşık sayılar için, y = sign(x) = x / |x| eğer x != 0 ise, aksi halde y = 0 .

Örnek kullanım: tf.math.sign([0., 2., -3.])

Argümanlar:

İadeler:

Yapıcılar ve Yıkıcılar

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

Genel özellikler

operation
y

Kamu işlevleri

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

Genel özellikler

operasyon

Operation operation

sen

::tensorflow::Output y

Kamu işlevleri

İmza

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

düğüm

::tensorflow::Node * node() const 

operatör::tensorflow::Giriş

 operator::tensorflow::Input() const 

operatör::tensorflow::Çıktı

 operator::tensorflow::Output() const