เทนเซอร์โฟลว์::ออปส์::คอช

#include <math_ops.h>

คำนวณค่าโคไซน์ไฮเปอร์โบลิกของ x ทีละองค์ประกอบ

สรุป

ฟังก์ชันนี้จะคำนวณค่าโคไซน์ไฮเปอร์โบลิกของทุกองค์ประกอบในเทนเซอร์ โดยรับเทนเซอร์เป็นอินพุต ช่วง ของอินพุต คือ [-inf, inf] และช่วงของเอาต์พุตคือ [1, inf]

  x = tf.constant([-float("inf"), -9, -0.5, 1, 1.2, 2, 10, float("inf")])
  tf.math.cosh(x) ==> [inf 4.0515420e+03 1.1276259e+00 1.5430807e+00 1.8106556e+00 3.7621956e+00 1.1013233e+04 inf]
  

ข้อโต้แย้ง:

การส่งคืนสินค้า:

  • Output : เทนเซอร์ y

ตัวสร้างและตัวทำลาย

Cosh (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

หน้าที่สาธารณะ

คอช

 Cosh(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input x
)

โหนด

::tensorflow::Node * node() const 

ตัวดำเนินการ::เทนเซอร์โฟลว์::อินพุต

 operator::tensorflow::Input() const 

ตัวดำเนินการ::เทนเซอร์โฟลว์::เอาต์พุต

 operator::tensorflow::Output() const