تدفق التوتر:: العمليات:: لافتة
#include <math_ops.h>
تقوم بإرجاع إشارة عنصرية لعلامة الرقم.
ملخص
y = sign(x) = -1
إذا x < 0
; 0 إذا x == 0
; 1 إذا x > 0
.
بالنسبة للأعداد المركبة، y = sign(x) = x / |x|
إذا x != 0
وإلا y = 0
.
الحجج:
- النطاق: كائن النطاق
العوائد:
-
Output
: الموتر y.
البنائين والمدمرين | |
---|---|
Sign (const :: tensorflow::Scope & scope, :: tensorflow::Input x) |
الوظائف العامة | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
الصفات العامة
عملية
Operation operation
ذ
::tensorflow::Output y
الوظائف العامة
لافتة
Sign( const ::tensorflow::Scope & scope, ::tensorflow::Input x )
العقدة
::tensorflow::Node * node() const
المشغل::tensorflow::الإدخال
operator::tensorflow::Input() const
المشغل::tensorflow::الإخراج
operator::tensorflow::Output() const