সেন্সরফ্লো :: অপস :: আনসোর্টড সেগমেন্টজাইন
#include <string_ops.h>
segment_ids
উপর ভিত্তি করে inputs
উপাদানগুলিতে যোগদান করে।
সারসংক্ষেপ
টেনসারের অংশগুলি সহ স্ট্রিংয়ের যোগদানের গণনা করে। র্যাঙ্ক N
সহ segment_ids
এবং N+M
:
`output[i, k1...kM] = strings.join([data[j1...jN, k1...kM])`র্যাঙ্ক সহ
data
দেওয়া হয়েছেযেখানে যোগদান সমস্তটি শেষ হয়ে গেছে [j1 ... jN] যেমন সেগমেন্ট_আইডস [জে 1 ... জেএন] = 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']
যুক্তি:
- সুযোগ: একটি স্কোপ অবজেক্ট
- ইনপুটস: ইনপুট যোগ করতে হবে।
- সেগমেন্ট_আইডস: একটি টেনসর যার আকার ডেটা.শপের একটি উপসর্গ। Gণাত্মক সেগমেন্ট আইডিগুলি সমর্থিত নয়।
- সংখ্যা_ বিভাগ: একটি স্কেলার।
- বিভাজক: যোগদানের সময় ব্যবহার করার জন্য পৃথককারী।
রিটার্নস:
-
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) |
স্ট্রাক্টস | |
---|---|
টেনসরফ্লো :: অপস :: আনসোর্টড সেগমেন্টজাইন :: অ্যাট্রেস | আনসোর্টডসেগমেন্টজইনের জন্য al চ্ছিক অ্যাট্রিবিউট সেটটার। |
জনসাধারণের গুণাবলী
অপারেশন
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 )