Google I/O'yu ayarladığınız için teşekkür ederiz. İsteğe bağlı olarak tüm oturumları görüntüleyin İsteğe bağlı olarak izleyin

tensorflow :: ops :: İşaret

#include <math_ops.h>

Bir sayının işaretine ilişkin öğe bazında bir gösterge döndürür.

Özet

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

Karmaşık sayılar için, y = sign(x) = x / |x| x != 0 , aksi takdirde y = 0 .

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

Argümanlar:

  • kapsam: Bir Scope nesnesi

İadeler:

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

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

Genel özellikler

operation
y

Kamusal işlevler

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

Genel özellikler

operasyon

Operation operation

y

::tensorflow::Output y

Kamusal işlevler

İşaret

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

düğüm

::tensorflow::Node * node() const 

operator :: tensorflow :: Girdi

 operator::tensorflow::Input() const 

operator :: tensorflow :: Çıktı

 operator::tensorflow::Output() const