tensorflow::ops::Cos
#include <math_ops.h>Calcule le cosinus de x élément par élément.
Résumé
Cette fonction calcule le cosinus de chaque élément d'un tenseur donné en entrée. L'intervalle d'entrée est (-inf, inf) et l'intervalle de sortie est [-1,1] . Si l'entrée est en dehors de cet intervalle, nan est renvoyée.
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]
Arguments :
- portée : un objet Scope
Retours :
-
Output: Le tenseur y.
Constructeurs et destructeurs | |
|---|---|
Cos (const :: tensorflow::Scope & scope, :: tensorflow::Input x) |
attributs publics | |
|---|---|
operation | |
y | |
fonctions publiques | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
attributs publics
opération
Operation operation
y
::tensorflow::Output y
fonctions publiques
Cos
Cos( const ::tensorflow::Scope & scope, ::tensorflow::Input x )
nœud
::tensorflow::Node * node() const
opérateur::tensorflow::Entrée
operator::tensorflow::Input() const
opérateur::tensorflow::Sortie
operator::tensorflow::Output() const