tensorflow::ops::LogSoftmax
#include <nn_ops.h>คำนวณค่าการเปิดใช้งานซอฟต์แม็กซ์แบบลอการิทึม
สรุป
สำหรับแต่ละชุดข้อมูล i และชั้นเรียน j เรามี
logsoftmax[i, j] = logits[i, j] - log(sum(exp(logits[i])))
ข้อโต้แย้ง:
- ขอบเขต: วัตถุ ขอบเขต
- logits: 2 มิติ รูปทรง
[batch_size, num_classes]
การส่งคืนสินค้า:
-
Output: มีรูปร่างเหมือนกับlogits
ตัวสร้างและตัวทำลาย | |
|---|---|
LogSoftmax (const :: tensorflow::Scope & scope, :: tensorflow::Input logits) |
คุณลักษณะสาธารณะ | |
|---|---|
logsoftmax | |
operation | |
หน้าที่สาธารณะ | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
คุณลักษณะสาธารณะ
ล็อกซอฟต์แม็กซ์
::tensorflow::Output logsoftmax
การดำเนินการ
Operation operation
หน้าที่สาธารณะ
ล็อกซอฟต์แม็กซ์
LogSoftmax( const ::tensorflow::Scope & scope, ::tensorflow::Input logits )
โหนด
::tensorflow::Node * node() const
ตัวดำเนินการ::เทนเซอร์โฟลว์::อินพุต
operator::tensorflow::Input() const
ตัวดำเนินการ::เทนเซอร์โฟลว์::เอาต์พุต
operator::tensorflow::Output() const