เทนเซอร์โฟลว์:: ออปส์:: เอ็กซ์พีเอ็ม1

#include <math_ops.h>

คำนวณ exp(x) - 1 แบบทีละองค์ประกอบ

สรุป

เช่น exp(x) - 1 หรือ e^(x) - 1 โดยที่ x คือเทนเซอร์อินพุต e แทนเลขของออยเลอร์และมีค่าประมาณ 2.718281

  x = tf.constant(2.0)
  tf.math.expm1(x) ==> 6.389056

  x = tf.constant([2.0, 8.0])
  tf.math.expm1(x) ==> array([6.389056, 2979.958], dtype=float32)

  x = tf.constant(1 + 1j)
  tf.math.expm1(x) ==> (0.46869393991588515+2.2873552871788423j)
  

ข้อโต้แย้ง:

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

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

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

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

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

เอ็กซ์พีเอ็ม1

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

โหนด

::tensorflow::Node * node() const 

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

 operator::tensorflow::Input() const 

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

 operator::tensorflow::Output() const