เทนเซอร์โฟลว์:: ออปส์:: อะทานห์

#include <math_ops.h>

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

สรุป

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

  x = tf.constant([-float("inf"), -1, -0.5, 1, 0, 0.5, 10, float("inf")])
  tf.math.atanh(x) ==> [nan -inf -0.54930615 inf  0. 0.54930615 nan nan]
  

ข้อโต้แย้ง:

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

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

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

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

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

อาตันห์

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

โหนด

::tensorflow::Node * node() const 

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

 operator::tensorflow::Input() const 

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

 operator::tensorflow::Output() const