টেনসরফ্লো :: অপস:: NthElement

#include <nn_ops.h>

শেষ মাত্রার জন্য n -তম ক্রম পরিসংখ্যানের মান খুঁজে বের করে।

সারসংক্ষেপ

যদি ইনপুটটি একটি ভেক্টর (র্যাঙ্ক-1) হয়, তাহলে ভেক্টরের মধ্যে nম-ক্ষুদ্রতম মান এবং স্কেলার টেনসর হিসাবে তাদের মানগুলি আউটপুট করে এমন এন্ট্রিগুলি খুঁজে বের করে।

ম্যাট্রিক্সের জন্য (resp. উচ্চতর র্যাঙ্ক ইনপুট), এন্ট্রিগুলি গণনা করে যা প্রতিটি সারিতে nth- ক্ষুদ্রতম মান (শেষ মাত্রা বরাবর resp. ভেক্টর)। সুতরাং,

values.shape = input.shape[:-1]

যুক্তি:

  • স্কোপ: একটি স্কোপ অবজেক্ট
  • ইনপুট: 1-D বা উচ্চতর শেষ মাত্রা সহ কমপক্ষে n+1
  • n: 0-D. শেষ মাত্রা বরাবর নির্বাচন করার জন্য সাজানো ভেক্টরের অবস্থান (ম্যাট্রিসের জন্য প্রতিটি সারিতে)। n এর বৈধ পরিসর হল [0, input.shape[:-1])

ঐচ্ছিক বৈশিষ্ট্য (দেখুন Attrs ):

  • বিপরীত: সত্যে সেট করা হলে, ভেক্টরে nম-বৃহত্তর মানটি খুঁজুন এবং এর বিপরীতে।

রিটার্ন:

  • Output : প্রতিটি শেষ মাত্রিক স্লাইস বরাবর n -ম ক্রম পরিসংখ্যান।

কনস্ট্রাক্টর এবং ডেস্ট্রাক্টর

NthElement (const :: tensorflow::Scope & scope, :: tensorflow::Input input, :: tensorflow::Input n)
NthElement (const :: tensorflow::Scope & scope, :: tensorflow::Input input, :: tensorflow::Input n, const NthElement::Attrs & attrs)

পাবলিক বৈশিষ্ট্য

operation
values

পাবলিক ফাংশন

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

পাবলিক স্ট্যাটিক ফাংশন

Reverse (bool x)

কাঠামো

tensorflow:: ops:: NthElement:: Attrs

NthElement- এর জন্য ঐচ্ছিক বৈশিষ্ট্য নির্ধারণকারী।

পাবলিক বৈশিষ্ট্য

অপারেশন

Operation operation

মান

::tensorflow::Output values

পাবলিক ফাংশন

NthElement

 NthElement(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  ::tensorflow::Input n
)

NthElement

 NthElement(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  ::tensorflow::Input n,
  const NthElement::Attrs & attrs
)

নোড

::tensorflow::Node * node() const 

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

 operator::tensorflow::Input() const 

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

 operator::tensorflow::Output() const 

পাবলিক স্ট্যাটিক ফাংশন

বিপরীত

Attrs Reverse(
  bool x
)