tensorflow:: ops:: Sign
#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 ।
ব্যবহারের উদাহরণ: tf.math.sign([0., 2., -3.])
যুক্তি:
- স্কোপ: একটি স্কোপ অবজেক্ট
ফেরত:
-
Output: y টেনসর।
নির্মাতা এবং ধ্বংসকারী | |
|---|---|
Sign (const :: tensorflow::Scope & scope, :: tensorflow::Input x) |
জনসাধারণের বৈশিষ্ট্য | |
|---|---|
operation | |
y | |
জনসাধারণের কার্যাবলী | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
জনসাধারণের বৈশিষ্ট্য
অপারেশন
Operation operation
y
::tensorflow::Output y
জনসাধারণের কার্যাবলী
চিহ্ন
Sign( const ::tensorflow::Scope & scope, ::tensorflow::Input x )
নোড
::tensorflow::Node * node() const
অপারেটর::টেনসরফ্লো::ইনপুট
operator::tensorflow::Input() const
অপারেটর::টেনসরফ্লো::আউটপুট
operator::tensorflow::Output() const