텐서플로우:: 연산:: 코스
#include <math_ops.h>x의 코사인 값을 요소별로 계산합니다.
요약
이 함수는 입력 텐서의 각 요소에 대한 코사인 값을 계산합니다. 입력 범위는 (-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]
논거:
- 범위: Scope 객체
보고:
-
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
연산자::텐서플로우::입력
operator::tensorflow::Input() const
연산자::텐서플로우::출력
operator::tensorflow::Output() const