টেনসরফ্লো :: অপস:: চিহ্ন

#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