เทนเซอร์โฟลว์::ออปส์::แอลแกมมา

#include <math_ops.h>

คำนวณค่าลอการิทึมของค่าสัมบูรณ์ของ Gamma(x) แบบรายองค์ประกอบ

สรุป

สำหรับจำนวนบวก ฟังก์ชันนี้จะคำนวณ log((อินพุต - 1)!) สำหรับทุกองค์ประกอบในเทนเซอร์ lgamma(5) = log((5-1)!) = log(4!) = log(24) = 3.1780539

ตัวอย่าง:

x = tf.constant([0, 0.5, 1, 4.5, -4, -5.6])
tf.math.lgamma(x) ==> [inf, 0.5723649, 0., 2.4537368, inf, -4.6477685]

ข้อโต้แย้ง:

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

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

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

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

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

แอลแกมมา

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

โหนด

::tensorflow::Node * node() const 

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

 operator::tensorflow::Input() const 

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

 operator::tensorflow::Output() const