tensorflow:: ops:: Cos
#include <math_ops.h>Calcola il coseno di x elemento per elemento.
Riepilogo
Dato un tensore di input, questa funzione calcola il coseno di ogni elemento del tensore. L'intervallo di input è (-inf, inf) e l'intervallo di output è [-1,1] . Se l'input si trova al di fuori di questo intervallo, viene restituito 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]
Argomentazioni:
- ambito: un oggetto Scope
Resi:
-
Output: Il tensore y.
Costruttori e distruttori | |
|---|---|
Cos (const :: tensorflow::Scope & scope, :: tensorflow::Input x) |
attributi pubblici | |
|---|---|
operation | |
y | |
Funzioni pubbliche | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
attributi pubblici
operazione
Operation operation
y
::tensorflow::Output y
Funzioni pubbliche
Cos
Cos( const ::tensorflow::Scope & scope, ::tensorflow::Input x )
nodo
::tensorflow::Node * node() const
operatore::tensorflow::Input
operator::tensorflow::Input() const
operatore::tensoreflusso::output
operator::tensorflow::Output() const