przepływ tensorowy:: ops:: Podpisać
#include <math_ops.h>Zwraca elementarne wskazanie znaku liczby.
Streszczenie
y = sign(x) = -1 jeśli x < 0 ; 0 jeśli x == 0 ; 1 jeśli x > 0 .
W przypadku liczb zespolonych y = sign(x) = x / |x| jeśli x != 0 , w przeciwnym razie y = 0 .
Przykładowe użycie: tf.math.sign([0., 2., -3.])
Argumenty:
- zakres: Obiekt Scope
Zwroty:
-
Output: tensor y.
Konstruktory i destruktory | |
|---|---|
Sign (const :: tensorflow::Scope & scope, :: tensorflow::Input x) |
Atrybuty publiczne | |
|---|---|
operation | |
y | |
Funkcje publiczne | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
Atrybuty publiczne
działanie
Operation operation
y
::tensorflow::Output y
Funkcje publiczne
Podpisać
Sign( const ::tensorflow::Scope & scope, ::tensorflow::Input x )
węzeł
::tensorflow::Node * node() const
operator::tensorflow::Wejście
operator::tensorflow::Input() const
operator::tensorflow::Wyjście
operator::tensorflow::Output() const