সেন্সরফ্লো :: অপস :: সফটম্যাক্স
#include <nn_ops.h>
সফটম্যাক্স অ্যাক্টিভেশনগুলি গণনা করে।
সারসংক্ষেপ
প্রতিটি ব্যাচের i
এবং ক্লাস j
আমাদের
$$softmax[i, j] = exp(logits[i, j]) / sum_j(exp(logits[i, j]))$$আছে
যুক্তি:
- সুযোগ: একটি স্কোপ অবজেক্ট
- লগইটস: আকারের সাথে 2-ডি
[batch_size, num_classes]
।
রিটার্নস:
-
Output
:logits
হিসাবে একই আকৃতি।
নির্মাণকারী এবং ধ্বংসকারী | |
---|---|
Softmax (const :: tensorflow::Scope & scope, :: tensorflow::Input logits) |
জনসাধারণের গুণাবলী | |
---|---|
operation | |
softmax |
পাবলিক ফাংশন | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
জনসাধারণের গুণাবলী
অপারেশন
Operation operation
সফটম্যাক্স
::tensorflow::Output softmax
পাবলিক ফাংশন
সফটম্যাক্স
Softmax( const ::tensorflow::Scope & scope, ::tensorflow::Input logits )
নোড
::tensorflow::Node * node() const
অপারেটর :: টেনসরফ্লো :: ইনপুট
operator::tensorflow::Input() const
অপারেটর :: টেনসরফ্লো :: আউটপুট
operator::tensorflow::Output() const