tensorflow:: אופס:: ParseSingleSequenceExample

#include <parsing_ops.h>

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

סיכום

טיעונים:

  • scope: אובייקט Scope
  • serialized: סקלאר המכיל פרוטו בינארי מסודר של SequenceExample.
  • feature_list_dense_missing_assumed_empty: וקטור המפרט את מפתחות FeatureList שעשויים להיות חסרים ב-SequenceExample. אם ה- FeatureList המשויך חסר, הוא יטופל כריק. כברירת מחדל, כל FeatureList שלא מופיע בוקטור זה חייב להתקיים ב-SequenceExample.
  • 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 המשויכים לרשימות של ערכים צפופים.
  • 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].
  • debug_name: סקלאר המכיל את השם של הפרוטו המסודר. עשוי להכיל, למשל, שם מפתח טבלה (תיאורי) עבור הפרוטו המתאים בסידרה. זה שימושי אך ורק למטרות ניפוי באגים, ולנוכחות של ערכים כאן אין השפעה על הפלט. עשוי להיות גם סקלאר ריק אם אין שם זמין.

מאפיינים אופציונליים (ראה 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

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

ParseSingleSequenceExample (const :: tensorflow::Scope & scope, :: tensorflow::Input serialized, :: tensorflow::Input feature_list_dense_missing_assumed_empty, :: tensorflow::InputList context_sparse_keys, :: tensorflow::InputList context_dense_keys, :: tensorflow::InputList feature_list_sparse_keys, :: tensorflow::InputList feature_list_dense_keys, :: tensorflow::InputList context_dense_defaults, :: tensorflow::Input debug_name)
ParseSingleSequenceExample (const :: tensorflow::Scope & scope, :: tensorflow::Input serialized, :: tensorflow::Input feature_list_dense_missing_assumed_empty, :: tensorflow::InputList context_sparse_keys, :: tensorflow::InputList context_dense_keys, :: tensorflow::InputList feature_list_sparse_keys, :: tensorflow::InputList feature_list_dense_keys, :: tensorflow::InputList context_dense_defaults, :: tensorflow::Input debug_name, const ParseSingleSequenceExample::Attrs & attrs)

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

context_dense_values
context_sparse_indices
context_sparse_shapes
context_sparse_values
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)

מבנים

tensorflow:: ops:: ParseSingleSequenceExample:: Attrs

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

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

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_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

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

ParseSingleSequenceExample

 ParseSingleSequenceExample(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input serialized,
  ::tensorflow::Input feature_list_dense_missing_assumed_empty,
  ::tensorflow::InputList context_sparse_keys,
  ::tensorflow::InputList context_dense_keys,
  ::tensorflow::InputList feature_list_sparse_keys,
  ::tensorflow::InputList feature_list_dense_keys,
  ::tensorflow::InputList context_dense_defaults,
  ::tensorflow::Input debug_name
)

ParseSingleSequenceExample

 ParseSingleSequenceExample(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input serialized,
  ::tensorflow::Input feature_list_dense_missing_assumed_empty,
  ::tensorflow::InputList context_sparse_keys,
  ::tensorflow::InputList context_dense_keys,
  ::tensorflow::InputList feature_list_sparse_keys,
  ::tensorflow::InputList feature_list_dense_keys,
  ::tensorflow::InputList context_dense_defaults,
  ::tensorflow::Input debug_name,
  const ParseSingleSequenceExample::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
)