tensorflow :: ops :: Sałata
#include <math_ops.h>
Oblicza cos z x według elementu.
streszczenie
Biorąc pod uwagę 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 znajdują się 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:
- zakres: obiekt Scope
Zwroty:
-
Output
: tensor y.
Konstruktorzy i niszczyciele | |
---|---|
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 :: Input
operator::tensorflow::Input() const
operator :: tensorflow :: Output
operator::tensorflow::Output() const