tensorflow:: ops:: Cos
#include <math_ops.h>Oblicza cosinus x dla każdego elementu.
Streszczenie
Biorąc pod uwagę tensor wejściowy, ta funkcja 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ą, zwracana jest wartość 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 zakresu
Zwroty:
-
Output: tensor y.
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
działanie
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