টেনসরফ্লো :: অপস:: সফটম্যাক্স

#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

softmax

::tensorflow::Output softmax

পাবলিক ফাংশন

সফটম্যাক্স

 Softmax(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input logits
)

নোড

::tensorflow::Node * node() const 

অপারেটর::টেনসরফ্লো::ইনপুট

 operator::tensorflow::Input() const 

অপারেটর::টেনসরফ্লো::আউটপুট

 operator::tensorflow::Output() const