tensorflow:: ops:: UnsortedSegmentJoin

#include <string_ops.h>

segment_ids উপর ভিত্তি করে inputs উপাদানগুলিকে যুক্ত করে।

সারসংক্ষেপ

একটি টেনসরের সেগমেন্ট বরাবর স্ট্রিং জয়েন গণনা করে। N র‍্যাঙ্কের segment_ids এবং N+M র‍্যাঙ্কের data দেওয়া থাকলে:

`output[i, k1...kM] = strings.join([data[j1...jN, k1...kM])`

যেখানে জয়েনটি [j1...jN] এর সকল স্ট্রিংয়ের উপর করা হয়, যেন segment_ids[j1...jN] = i হয়। স্ট্রিংগুলো রো-মেজর অর্ডারে যুক্ত করা হয়।

উদাহরণস্বরূপ:

inputs = [['Y', 'q', 'c'], ['Y', '6', '6'], ['p', 'G', 'a']]
output_array = string_ops.unsorted_segment_join(inputs=inputs,
                                                segment_ids=[1, 0, 1],
                                                num_segments=2,
                                                separator=':'))
# output_array ==> [['Y', '6', '6'], ['Y:p', 'q:G', 'c:a']]

inputs = ['this', 'is', 'a', 'test']
output_array = string_ops.unsorted_segment_join(inputs=inputs,
                                                segment_ids=[0, 0, 0, 0],
                                                num_segments=1,
                                                separator=':'))
# output_array ==> ['this:is:a:test']

যুক্তি:

  • স্কোপ: একটি স্কোপ অবজেক্ট
  • ইনপুট: যে ইনপুটটি যুক্ত করা হবে।
  • segment_ids: একটি টেনসর যার shape হলো data.shape-এর একটি প্রিফিক্স। ঋণাত্মক সেগমেন্ট আইডি সমর্থিত নয়।
  • num_segments: একটি স্কেলার।

ঐচ্ছিক অ্যাট্রিবিউটসমূহ (দেখুন Attrs ):

  • বিভাজক: যুক্ত করার সময় যে বিভাজকটি ব্যবহার করা হবে।

ফেরত:

  • Output : আউটপুট টেনসর।

নির্মাতা এবং ধ্বংসকারী

UnsortedSegmentJoin (const :: tensorflow::Scope & scope, :: tensorflow::Input inputs, :: tensorflow::Input segment_ids, :: tensorflow::Input num_segments)
UnsortedSegmentJoin (const :: tensorflow::Scope & scope, :: tensorflow::Input inputs, :: tensorflow::Input segment_ids, :: tensorflow::Input num_segments, const UnsortedSegmentJoin::Attrs & attrs)

জনসাধারণের বৈশিষ্ট্য

operation
output

জনসাধারণের কার্যাবলী

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

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

Separator (StringPiece x)

কাঠামো

tensorflow:: ops:: UnsortedSegmentJoin:: Attrs

UnsortedSegmentJoin-এর জন্য ঐচ্ছিক অ্যাট্রিবিউট সেটার।

জনসাধারণের বৈশিষ্ট্য

অপারেশন

Operation operation

আউটপুট

::tensorflow::Output output

জনসাধারণের কার্যাবলী

অসাজানো সেগমেন্ট যোগদান

 UnsortedSegmentJoin(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input inputs,
  ::tensorflow::Input segment_ids,
  ::tensorflow::Input num_segments
)

অসাজানো সেগমেন্ট যোগদান

 UnsortedSegmentJoin(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input inputs,
  ::tensorflow::Input segment_ids,
  ::tensorflow::Input num_segments,
  const UnsortedSegmentJoin::Attrs & attrs
)

নোড

::tensorflow::Node * node() const 

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

 operator::tensorflow::Input() const 

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

 operator::tensorflow::Output() const 

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

বিভাজক

Attrs Separator(
  StringPiece x
)