tensorflow::ops::Sign
#include <math_ops.h>Bir sayının işaretini eleman bazında gösterir.
Özet
y = sign(x) = -1 eğer x < 0 ise; 0 eğer x == 0 ise; 1 eğer x > 0 ise.
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:
- kapsam: Bir Kapsam nesnesi
İadeler:
-
Output: Y tensörü.
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
İ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