텐서플로우:: 작전:: 코사인

#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]
  

인수:

보고:

생성자와 소멸자

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