جریان تنسور:: عملیات:: LogSoftmax
#include <nn_ops.h>
فعال سازی های softmax را محاسبه می کند.
خلاصه
برای هر دسته i
و کلاس j
ما داریم
logsoftmax[i, j] = logits[i, j] - log(sum(exp(logits[i])))
استدلال ها:
- scope: یک شی Scope
- logits: 2-D با شکل
[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 |
صفات عمومی
logsoftmax
::tensorflow::Output logsoftmax
عملیات
Operation operation
توابع عمومی
LogSoftmax
LogSoftmax( const ::tensorflow::Scope & scope, ::tensorflow::Input logits )
گره
::tensorflow::Node * node() const
عملگر::tensorflow::ورودی
operator::tensorflow::Input() const
عملگر::tensorflow::خروجی
operator::tensorflow::Output() const