tensorflow:: אופס:: חַסַת עָלִים
#include <math_ops.h>
מחשבת cos של 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]
טיעונים:
- scope: אובייקט Scope
החזרות:
-
Output
: הטנסור y.
בנאים והורסים | |
---|---|
Cos (const :: tensorflow::Scope & scope, :: tensorflow::Input x) |
תפקידים ציבוריים | |
---|---|
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
מפעיל::tensorflow::קלט
operator::tensorflow::Input() const
אופרטור::tensorflow::פלט
operator::tensorflow::Output() const