টেনসরফ্লো :: অপস:: সাজানো সেগমেন্ট যোগ দিন
#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] যেমন সেগমেন্ট_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: একটি টেনসর যার আকৃতি 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:: UnsortedSegment Join:: 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 )