เทนเซอร์โฟลว์:: ปฏิบัติการ:: แกมมา
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
#include <math_ops.h>
คำนวณบันทึกของค่าสัมบูรณ์ขององค์ประกอบ Gamma(x)
สรุป
สำหรับจำนวนบวก ฟังก์ชันนี้จะคำนวณบันทึก ((อินพุต - 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) |
งานสาธารณะ | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
คุณลักษณะสาธารณะ
การดำเนินการ
Operation operation
ย
::tensorflow::Output y
งานสาธารณะ
แกมมา
Lgamma(
const ::tensorflow::Scope & scope,
::tensorflow::Input x
)
โหนด
::tensorflow::Node * node() const
ตัวดำเนินการ::tensorflow::อินพุต
operator::tensorflow::Input() const
ตัวดำเนินการ::tensorflow::เอาต์พุต
operator::tensorflow::Output() const