tensoreflusso:: ops:: Cos

#include <math_ops.h>

Calcola il cos di x in termini di elementi.

Riepilogo

Dato un tensore di input, questa funzione calcola il coseno di ogni elemento nel tensore. L'intervallo di input è (-inf, inf) e l'intervallo di output è [-1,1] . Se l'input si trova all'esterno del confine, 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]
  

Argomenti:

Ritorna:

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

::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::tensorflow::Output

 operator::tensorflow::Output() const