tensorflow:: אופס:: UnicodeScript

#include <string_ops.h>

קבע את קודי הסקריפט של טנסור נתון של נקודות קוד שלמות של Unicode.

סיכום

פעולה זו ממירה נקודות קוד Unicode לקודי סקריפט המתאימים לכל נקודת קוד. קודי סקריפט תואמים לערכי UScriptCode International Components for Unicode (ICU). ראה http://icu-project.org/apiref/icu4c/uscript_8h.html . מחזירה -1 (USCRIPT_INVALID_CODE) עבור נקודות קוד לא חוקיות. צורת הפלט תתאים לצורת הקלט.

טיעונים:

  • scope: אובייקט Scope
  • קלט: Tensor של נקודות קוד int32 Unicode.

החזרות:

  • Output : טנסור של קודי סקריפט int32 התואמים לכל נקודת קוד קלט.

בנאים והורסים

UnicodeScript (const :: tensorflow::Scope & scope, :: tensorflow::Input input)

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

operation
output

תפקידים ציבוריים

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

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

מבצע

Operation operation

תְפוּקָה

::tensorflow::Output output

תפקידים ציבוריים

UnicodeScript

 UnicodeScript(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input
)

צוֹמֶת

::tensorflow::Node * node() const 

מפעיל::tensorflow::קלט

 operator::tensorflow::Input() const 

אופרטור::tensorflow::פלט

 operator::tensorflow::Output() const