tensorflow:: אופס:: StringLength
#include <string_ops.h>
אורכי קלט של input
.
תַקצִיר
מחשב את האורך של כל מיתר שניתן בטנזור הקלט.
טיעונים:
- scope: אובייקט Scope
- קלט: המחרוזת שעבורה יש לחשב את האורך.
מאפיינים אופציונליים (ראה Attrs
):
- unit: היחידה שנספרת לחישוב אורך המחרוזת. אחת מ:
"BYTE"
(עבור מספר הבתים בכל מחרוזת) או"UTF8_CHAR"
(עבור מספר נקודות קוד Unicode מקודדות 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) |
תפקידים ציבוריים | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
מבנים | |
---|---|
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
)