টেনসরফ্লো :: অপস:: কারণ

#include <math_ops.h>

x উপাদান-ভিত্তিক মূল্য গণনা করে।

সারসংক্ষেপ

একটি ইনপুট টেনসর দেওয়া হয়েছে, এই ফাংশনটি টেনসরের প্রতিটি উপাদানের কোসাইন গণনা করে। ইনপুট রেঞ্জ হল (-inf, inf) এবং আউটপুট রেঞ্জ হল [-1,1] । ইনপুট সীমানার বাইরে থাকলে, nan ফেরত দেওয়া হয়।

  x = tf.constant([-float("inf"), -9, -0.5, 1, 1.2, 200, 10000, float("inf")])
  tf.math.cos(x) ==> [nan -0.91113025 0.87758255 0.5403023 0.36235774 0.48718765 -0.95215535 nan]
  

যুক্তি:

রিটার্ন:

  • Output : y টেনসর।

কনস্ট্রাক্টর এবং ডেস্ট্রাক্টর

Cos (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

পাবলিক ফাংশন

কারণ

 Cos(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input x
)

নোড

::tensorflow::Node * node() const 

অপারেটর::টেনসরফ্লো::ইনপুট

 operator::tensorflow::Input() const 

অপারেটর::টেনসরফ্লো::আউটপুট

 operator::tensorflow::Output() const