przepływ tensorowy:: ops:: Sałata

#include <math_ops.h>

Oblicza cos x elementarnie.

Streszczenie

Mając tensor wejściowy, funkcja ta oblicza cosinus każdego elementu tensora. Zakres wejściowy to (-inf, inf) , a zakres wyjściowy to [-1,1] . Jeśli dane wejściowe leżą poza granicą, zwracane jest 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]
  

Argumenty:

Zwroty:

Konstruktory i destruktory

Cos (const :: tensorflow::Scope & scope, :: tensorflow::Input x)

Atrybuty publiczne

operation
y

Funkcje publiczne

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

Atrybuty publiczne

operacja

Operation operation

y

::tensorflow::Output y

Funkcje publiczne

Sałata

 Cos(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input x
)

węzeł

::tensorflow::Node * node() const 

operator::tensorflow::Wejście

 operator::tensorflow::Input() const 

operator::tensorflow::Wyjście

 operator::tensorflow::Output() const