টেনসরফ্লো :: অপস:: স্ট্রিং লেন্থ
#include <string_ops.h> input স্ট্রিং দৈর্ঘ্য।
সারাংশ
ইনপুট টেনসরে দেওয়া প্রতিটি স্ট্রিংয়ের দৈর্ঘ্য গণনা করে।
স্ট্রিং = tf.constant(['Hello','TensorFlow', '']) tf.strings.length(strings).numpy() # ডিফল্ট গণনা করে বাইট অ্যারে([ 5, 10, 4], dtype=int32) tf .strings.length(strings, unit="UTF8_CHAR").numpy() অ্যারে([ 5, 10, 1], dtype=int32)
যুক্তি:
- স্কোপ: একটি স্কোপ অবজেক্ট
- ইনপুট: প্রতিটি উপাদানের দৈর্ঘ্য গণনা করার জন্য স্ট্রিং।
 ঐচ্ছিক বৈশিষ্ট্য (দেখুন Attrs ):
-  ইউনিট: স্ট্রিং দৈর্ঘ্য গণনা করার জন্য যে ইউনিট গণনা করা হয়। এর মধ্যে একটি: "BYTE"(প্রতিটি স্ট্রিংয়ে বাইটের সংখ্যার জন্য) বা"UTF8_CHAR"(প্রতিটি স্ট্রিংয়ে UTF-8 এনকোড করা ইউনিকোড কোড পয়েন্টের সংখ্যার জন্য)।unit=UTF8_CHARএবংinputস্ট্রিংগুলিতে কাঠামোগতভাবে বৈধ UTF-8 না থাকলে ফলাফলগুলি অনির্ধারিত।
রিটার্ন:
-  Output: পূর্ণসংখ্যা টেনসর যাinputমতো একই আকৃতির। আউটপুটেinputউপাদান-ভিত্তিক স্ট্রিং দৈর্ঘ্য রয়েছে।
| কনস্ট্রাক্টর এবং ডেস্ট্রাক্টর | |
|---|---|
| StringLength (const :: tensorflow::Scope & scope, :: tensorflow::Input input) | |
| StringLength (const :: tensorflow::Scope & scope, :: tensorflow::Input input, const StringLength::Attrs & attrs) | 
| পাবলিক বৈশিষ্ট্য | |
|---|---|
| operation | |
| output | |
| পাবলিক ফাংশন | |
|---|---|
| node () const | ::tensorflow::Node * | 
| operator::tensorflow::Input () const | |
| operator::tensorflow::Output () const | |
| পাবলিক স্ট্যাটিক ফাংশন | |
|---|---|
| Unit (StringPiece x) | |
| কাঠামো | |
|---|---|
| tensorflow:: ops:: StringLength:: Attrs | স্ট্রিংলেংথের জন্য ঐচ্ছিক অ্যাট্রিবিউট সেটার। | 
পাবলিক বৈশিষ্ট্য
অপারেশন
Operation operation
আউটপুট
::tensorflow::Output output
পাবলিক ফাংশন
স্ট্রিং লেন্থ
StringLength( const ::tensorflow::Scope & scope, ::tensorflow::Input input )
স্ট্রিং লেন্থ
StringLength( const ::tensorflow::Scope & scope, ::tensorflow::Input input, const StringLength::Attrs & attrs )
নোড
::tensorflow::Node * node() const
অপারেটর::টেনসরফ্লো::ইনপুট
operator::tensorflow::Input() const
অপারেটর::টেনসরফ্লো::আউটপুট
operator::tensorflow::Output() const
পাবলিক স্ট্যাটিক ফাংশন
ইউনিট
Attrs Unit( StringPiece x )