Tensorflow :: ops :: Cos
#include <math_ops.h>
Berechnet cos von x elementweise.
Zusammenfassung
Bei einem eingegebenen Tensor berechnet diese Funktion den Kosinus jedes Elements im Tensor. Der Eingabebereich ist (-inf, inf)
und der Ausgabebereich ist [-1,1]
. Wenn die Eingabe außerhalb der Grenze liegt, wird nan
zurückgegeben.
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]
Argumente:
- scope: Ein Scope- Objekt
Kehrt zurück:
-
Output
: Der y-Tensor.
Konstruktoren und Destruktoren | |
---|---|
Cos (const :: tensorflow::Scope & scope, :: tensorflow::Input x) |
Öffentliche Attribute | |
---|---|
operation | |
y |
Öffentliche Funktionen | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
Öffentliche Attribute
Operation
Operation operation
y
::tensorflow::Output y
Öffentliche Funktionen
Cos
Cos( const ::tensorflow::Scope & scope, ::tensorflow::Input x )
Knoten
::tensorflow::Node * node() const
operator :: tensorflow :: Input
operator::tensorflow::Input() const
operator :: tensorflow :: Output
operator::tensorflow::Output() const