tensorflow :: ops :: 코사인
#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
와이
::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