aliran tensor:: operasi:: Tanda
#include <math_ops.h>
Mengembalikan indikasi tanda bilangan berdasarkan elemen.
Ringkasan
y = sign(x) = -1
jika x < 0
; 0 jika x == 0
; 1 jika x > 0
.
Untuk bilangan kompleks, y = sign(x) = x / |x|
jika x != 0
, jika tidak y = 0
.
Argumen:
- ruang lingkup: Objek Lingkup
Pengembalian:
-
Output
: Tensor y.
Konstruktor dan Destruktor | |
---|---|
Sign (const :: tensorflow::Scope & scope, :: tensorflow::Input x) |
Atribut publik | |
---|---|
operation | |
y |
Fungsi publik | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
Atribut publik
operasi
Operation operation
kamu
::tensorflow::Output y
Fungsi publik
Tanda
Sign( const ::tensorflow::Scope & scope, ::tensorflow::Input x )
simpul
::tensorflow::Node * node() const
operator::tensorflow::Masukan
operator::tensorflow::Input() const
operator::tensorflow::Keluaran
operator::tensorflow::Output() const