tensorflow:: אופס:: ParseSequenceExample

#include <parsing_ops.h>

הופך וקטור של מוח. פרוטו דוגמה לרצף (כמחרוזות) לטנזורים מוקלדים.

סיכום

טיעונים:

  • scope: אובייקט Scope
  • serialized: וקטור המכיל פרוטואים בינאריים מסודרים של SequenceExample.
  • debug_name: וקטור המכיל את שמות הפרוטוטוס בסידרה. עשוי להכיל, למשל, שם מפתח טבלה (תיאורי) עבור הפרוטו המתאים בסידרה. זה שימושי אך ורק למטרות ניפוי באגים, ולנוכחות של ערכים כאן אין השפעה על הפלט. עשוי להיות גם וקטור ריק אם אין שם זמין.
  • context_dense_defaults: רשימה של Tensors Ncontext_dense (חלקם עשויים להיות ריקים). context_dense_defaults[j] מספק ערכי ברירת מחדל כאשר מפת ההקשר של SequenceExample חסרה context_dense_key[j]. אם מסופק Tensor ריק עבור context_dense_defaults[j], אזי יש צורך ב- Feature context_dense_keys[j]. סוג הקלט מוסק מ-context_dense_defaults[j], גם כאשר הוא ריק. אם context_dense_defaults[j] אינו ריק, הצורה שלו חייבת להתאים ל-context_dense_shapes[j].
  • feature_list_dense_missing_assumed_empty: וקטור המפרט את מפתחות FeatureList שעשויים להיות חסרים ב-SequenceExamples. אם ה- FeatureList המשויך חסר, הוא יטופל כריק. כברירת מחדל, כל FeatureList שלא מופיע בוקטור זה חייב להתקיים ב-SequenceExamples.
  • context_sparse_keys: רשימה של Tensors מחרוזת Ncontext_sparse (סקלרים). המפתחות הצפויים בתכונות הדוגמאות המשויכות לערכי context_sparse.
  • context_dense_keys: רשימה של Tensors של מחרוזת Ncontext_dense (סקלרים). המפתחות הצפויים בהקשר של SequenceExamples מאפיינים הקשורים לערכים צפופים.
  • feature_list_sparse_keys: רשימה של טנסור מחרוזת Nfeature_list_sparse (סקלרים). המפתחות הצפויים ב- FeatureLists המשויכים לערכים דלילים.
  • feature_list_dense_keys: רשימה של טנסור מחרוזת Nfeature_list_dense (סקלרים). המפתחות הצפויים ב-feature_lists של SequenceExamples המשויכים לרשימות של ערכים צפופים.

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

  • context_sparse_types: רשימה של סוגי Ncontext_sparse; סוגי הנתונים של הנתונים בכל הקשר תכונה הניתנת ב-context_sparse_keys. נכון לעכשיו, ParseSingleSequenceExample תומך ב-DT_FLOAT (FloatList), DT_INT64 (Int64List) ו-DT_STRING (BytesList).
  • context_dense_shapes: רשימה של צורות Ncontext_dense; צורות הנתונים בכל הקשר תכונה הניתנת ב-context_dense_keys. מספר האלמנטים בתכונה התואמת ל-context_dense_key[j] חייב תמיד להיות שווה ל-context_dense_shapes[j].NumEntries(). הצורה של context_dense_values[j] תתאים ל-context_dense_shapes[j].
  • feature_list_sparse_types: רשימה של סוגי Nfeature_list_sparse; סוגי הנתונים של הנתונים בכל FeatureList המופיעים ב- feature_list_sparse_keys. נכון לעכשיו, ParseSingleSequenceExample תומך ב-DT_FLOAT (FloatList), DT_INT64 (Int64List) ו-DT_STRING (BytesList).
  • feature_list_dense_shapes: רשימה של צורות Nfeature_list_dense; צורות הנתונים בכל FeatureList הניתנות ב- feature_list_dense_keys. הצורה של כל תכונה ב-FeatureList התואמת ל-feature_list_dense_key[j] חייבת תמיד להיות שווה ל-feature_list_dense_shapes[j].NumEntries().

החזרות:

  • OutputList context_sparse_indexes
  • OutputList context_sparse_values
  • OutputList context_sparse_shapes
  • OutputList context_dense_values
  • OutputList feature_list_sparse_indexes
  • OutputList feature_list_sparse_values
  • OutputList feature_list_sparse_shapes
  • OutputList feature_list_dense_values
  • OutputList feature_list_dense_lengths

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

ParseSequenceExample (const :: tensorflow::Scope & scope, :: tensorflow::Input serialized, :: tensorflow::Input debug_name, :: tensorflow::InputList context_dense_defaults, const gtl::ArraySlice< string > & feature_list_dense_missing_assumed_empty, const gtl::ArraySlice< string > & context_sparse_keys, const gtl::ArraySlice< string > & context_dense_keys, const gtl::ArraySlice< string > & feature_list_sparse_keys, const gtl::ArraySlice< string > & feature_list_dense_keys)
ParseSequenceExample (const :: tensorflow::Scope & scope, :: tensorflow::Input serialized, :: tensorflow::Input debug_name, :: tensorflow::InputList context_dense_defaults, const gtl::ArraySlice< string > & feature_list_dense_missing_assumed_empty, const gtl::ArraySlice< string > & context_sparse_keys, const gtl::ArraySlice< string > & context_dense_keys, const gtl::ArraySlice< string > & feature_list_sparse_keys, const gtl::ArraySlice< string > & feature_list_dense_keys, const ParseSequenceExample::Attrs & attrs)

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

context_dense_values
context_sparse_indices
context_sparse_shapes
context_sparse_values
feature_list_dense_lengths
feature_list_dense_values
feature_list_sparse_indices
feature_list_sparse_shapes
feature_list_sparse_values
operation

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

ContextDenseShapes (const gtl::ArraySlice< PartialTensorShape > & x)
ContextSparseTypes (const DataTypeSlice & x)
FeatureListDenseShapes (const gtl::ArraySlice< PartialTensorShape > & x)
FeatureListDenseTypes (const DataTypeSlice & x)
FeatureListSparseTypes (const DataTypeSlice & x)
NcontextDense (int64 x)
NcontextSparse (int64 x)
NfeatureListDense (int64 x)
NfeatureListSparse (int64 x)

מבנים

tensorflow:: ops:: ParseSequenceExample:: Attrs

קובעי תכונות אופציונליים עבור ParseSequenceExample .

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

context_dense_values

::tensorflow::OutputList context_dense_values

מדד_הקשר_דל

::tensorflow::OutputList context_sparse_indices

ההקשר_דלילות_צורות

::tensorflow::OutputList context_sparse_shapes

context_sparse_values

::tensorflow::OutputList context_sparse_values

feature_list_dense_lengths

::tensorflow::OutputList feature_list_dense_lengths

feature_list_dense_values

::tensorflow::OutputList feature_list_dense_values

feature_list_sparse_indexes

::tensorflow::OutputList feature_list_sparse_indices

feature_list_sparse_shapes

::tensorflow::OutputList feature_list_sparse_shapes

feature_list_sparse_values

::tensorflow::OutputList feature_list_sparse_values

מבצע

Operation operation

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

ParseSequenceExample

 ParseSequenceExample(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input serialized,
  ::tensorflow::Input debug_name,
  ::tensorflow::InputList context_dense_defaults,
  const gtl::ArraySlice< string > & feature_list_dense_missing_assumed_empty,
  const gtl::ArraySlice< string > & context_sparse_keys,
  const gtl::ArraySlice< string > & context_dense_keys,
  const gtl::ArraySlice< string > & feature_list_sparse_keys,
  const gtl::ArraySlice< string > & feature_list_dense_keys
)

ParseSequenceExample

 ParseSequenceExample(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input serialized,
  ::tensorflow::Input debug_name,
  ::tensorflow::InputList context_dense_defaults,
  const gtl::ArraySlice< string > & feature_list_dense_missing_assumed_empty,
  const gtl::ArraySlice< string > & context_sparse_keys,
  const gtl::ArraySlice< string > & context_dense_keys,
  const gtl::ArraySlice< string > & feature_list_sparse_keys,
  const gtl::ArraySlice< string > & feature_list_dense_keys,
  const ParseSequenceExample::Attrs & attrs
)

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

ContextDenseShapes

Attrs ContextDenseShapes(
  const gtl::ArraySlice< PartialTensorShape > & x
)

ContextSparseTypes

Attrs ContextSparseTypes(
  const DataTypeSlice & x
)

FeatureListDenseShapes

Attrs FeatureListDenseShapes(
  const gtl::ArraySlice< PartialTensorShape > & x
)

FeatureListDenseTypes

Attrs FeatureListDenseTypes(
  const DataTypeSlice & x
)

FeatureListSparseTypes

Attrs FeatureListSparseTypes(
  const DataTypeSlice & x
)

NcontextDense

Attrs NcontextDense(
  int64 x
)

NcontextSparse

Attrs NcontextSparse(
  int64 x
)

NfeatureListDense

Attrs NfeatureListDense(
  int64 x
)

NfeatureListSparse

Attrs NfeatureListSparse(
  int64 x
)