tensorflow:: אופס:: אורך המחרוזת

#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)

תכונות ציבוריות

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(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input
)

אורך המחרוזת

 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
)