tensorflow :: ops :: StringLength
#include <string_ops.h>
طول رشته input
.
خلاصه
طول هر رشته داده شده در سنسور ورودی را محاسبه می کند.
استدلال ها:
- دامنه: یک شی Sc Scope
- input: رشته ای که طول برای آن محاسبه می شود.
ویژگی های اختیاری (به Attrs
مراجعه کنید):
- unit: واحدی که برای محاسبه طول رشته شمرده می شود. یکی از این موارد:
"BYTE"
(برای تعداد بایت در هر رشته) یا"UTF8_CHAR"
(برای تعداد نقاط کد Unicode رمزگذاری شده در هر رشته UTF-8). اگرunit=UTF8_CHAR
و رشته هایinput
شامل ساختار معتبر UTF-8unit=UTF8_CHAR
نتایج تعریف نمی شوند.
بازده:
-
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 | تنظیم کننده های ویژگی اختیاری برای StringLength . |
صفات عمومی
عمل
Operation operation
خروجی
::tensorflow::Output output
کارکردهای عمومی
StringLength
StringLength( const ::tensorflow::Scope & scope, ::tensorflow::Input input )
StringLength
StringLength( const ::tensorflow::Scope & scope, ::tensorflow::Input input, const StringLength::Attrs & attrs )
گره
::tensorflow::Node * node() const
عملگر :: tensorflow :: ورودی
operator::tensorflow::Input() const
عملگر :: tensorflow :: خروجی
operator::tensorflow::Output() const
توابع استاتیک عمومی
واحد
Attrs Unit( StringPiece x )
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2020-04-20 بهوقت ساعت هماهنگ جهانی.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"اطلاعاتی که نیاز دارم وجود ندارد"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"بیشازحد پیچیده/ مراحل بسیار زیاد"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"قدیمی"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"مشکل ترجمه"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"مشکل کد / نمونهها"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"غیره"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"درک آسان"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"مشکلم را برطرف کرد"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"غیره"
}]