テンソルフロー::作戦::コス
#include <math_ops.h>x の cos を要素ごとに計算します。
まとめ
入力テンソルを指定すると、この関数はテンソル内のすべての要素のコサインを計算します。入力範囲は(-inf, inf)で、出力範囲は[-1,1]です。入力が境界の外側にある場合は、 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]
引数:
- スコープ:スコープオブジェクト
戻り値:
-  Output: y テンソル。
| コンストラクターとデストラクター | |
|---|---|
| Cos (const :: tensorflow::Scope & scope, :: tensorflow::Input x) | 
| パブリック属性 | |
|---|---|
| operation | |
| y | |
| 公共機能 | |
|---|---|
| node () const | ::tensorflow::Node * | 
| operator::tensorflow::Input () const | |
| operator::tensorflow::Output () const | |
パブリック属性
手術
Operation operation
y
::tensorflow::Output y
公共機能
コス
Cos( const ::tensorflow::Scope & scope, ::tensorflow::Input x )
ノード
::tensorflow::Node * node() const
演算子::tensorflow::入力
operator::tensorflow::Input() const
演算子::tensorflow::出力
operator::tensorflow::Output() const