tensorflow:: ops:: StringToNumber

#include <parsing_ops.h>

ממיר כל מחרוזת בטנזור הקלט לסוג המספרי שצוין.

תַקצִיר

(שימו לב ש-int32 overflow גורם לשגיאה בעוד ש-float overflow גורם לערך מעוגל.)

טיעונים:

מאפיינים אופציונליים (ראה Attrs ):

  • out_type: הסוג המספרי שיש לפרש כ- כל מחרוזת ב- string_tensor .

החזרות:

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

StringToNumber (const :: tensorflow::Scope & scope, :: tensorflow::Input string_tensor)
StringToNumber (const :: tensorflow::Scope & scope, :: tensorflow::Input string_tensor, const StringToNumber::Attrs & attrs)

מאפיינים ציבוריים

operation
output

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

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

פונקציות סטטיות ציבוריות

OutType (DataType x)

מבנים

tensorflow:: ops:: StringToNumber:: Attrs

קובעי מאפיינים אופציונליים עבור StringToNumber .

מאפיינים ציבוריים

מִבצָע

Operation operation

תְפוּקָה

::tensorflow::Output output

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

מחרוזתלמספר

 StringToNumber(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input string_tensor
)

מחרוזתלמספר

 StringToNumber(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input string_tensor,
  const StringToNumber::Attrs & attrs
)

צוֹמֶת

::tensorflow::Node * node() const 

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

 operator::tensorflow::Input() const 

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

 operator::tensorflow::Output() const 

פונקציות סטטיות ציבוריות

סוג חוץ

Attrs OutType(
  DataType x
)