tensorflow::ops::Cos
#include <math_ops.h>x'in kosinüsünü eleman bazında hesaplar.
Özet
Verilen bir tensör için, bu fonksiyon tensördeki her elemanın kosinüsünü hesaplar. Giriş aralığı (-inf, inf) ve çıkış aralığı [-1,1] dir. Giriş bu sınırın dışında kalırsa, nan değeri döndürülür.
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]
Argümanlar:
- kapsam: Bir Kapsam nesnesi
İadeler:
-
Output: Y tensörü.
Yapıcılar ve Yıkıcılar | |
|---|---|
Cos (const :: tensorflow::Scope & scope, :: tensorflow::Input x) |
Genel özellikler | |
|---|---|
operation | |
y | |
Kamusal işlevler | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
Genel özellikler
operasyon
Operation operation
y
::tensorflow::Output y
Kamusal işlevler
Cos
Cos( const ::tensorflow::Scope & scope, ::tensorflow::Input x )
düğüm
::tensorflow::Node * node() const
operatör::tensorflow::Giriş
operator::tensorflow::Input() const
operatör::tensorflow::Çıktı
operator::tensorflow::Output() const