সেন্সরফ্লো :: অপস :: কস
#include <math_ops.h>
এক্স উপাদান অনুসারে গণনা।
সারসংক্ষেপ
একটি ইনপুট টেনসর দেওয়া, এই ফাংশন টেনসর প্রতিটি উপাদান কোসাইন গণনা। ইনপুট পরিসর (-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