tensorflow:: אופס:: ParseSequenceExampleV2

#include <parsing_ops.h>

הופך וקטור של פרוטו tf.io.SequenceExample (כמחרוזות) לטנזורים מוקלדים.

סיכום

טיעונים:

  • scope: אובייקט Scope
  • serialized: סקלר או וקטור המכיל פרוטו בינאריים מסודרים של SequenceExample.
  • debug_name: סקלאר או וקטור המכילים את שמות הפרוטוטוסים המסודרים. עשוי להכיל, למשל, שם מפתח טבלה (תיאורי) עבור הפרוטו המתאים בסידרה. זה שימושי אך ורק למטרות ניפוי באגים, ולנוכחות של ערכים כאן אין השפעה על הפלט. עשוי להיות גם וקטור ריק אם אין שם זמין.
  • context_sparse_keys: המפתחות הצפויים בתכונות הדוגמאות המשויכות לערכי context_sparse.
  • context_dense_keys: המפתחות הצפויים בתכונות ההקשר של SequenceExamples המשויכות לערכים צפופים.
  • context_ragged_keys: המפתחות הצפויים בתכונות הדוגמאות המשויכות לערכי context_ragged.
  • feature_list_sparse_keys: המפתחות הצפויים ב- FeatureLists המשויכים לערכים דלילים.
  • feature_list_dense_keys: המפתחות הצפויים ברשימות feature_lists של SequenceExamples המשויכות לרשימות של ערכים צפופים.
  • feature_list_ragged_keys: המפתחות הצפויים ב- FeatureLists המשויכים לערכים מרופטים.
  • feature_list_dense_missing_assumed_empty: וקטור המתאים ל-1:1 עם featue_list_dense_keys, המציין אילו תכונות עשויות להיות חסרות ב-SequenceExamples. אם ה- FeatureList המשויך חסר, הוא יטופל כריק.
  • 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].

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

  • context_sparse_types: רשימה של סוגי Ncontext_sparse; סוגי הנתונים של הנתונים בכל הקשר תכונה הניתנת ב-context_sparse_keys. נכון לעכשיו, ParseSingleSequenceExample תומך ב-DT_FLOAT (FloatList), DT_INT64 (Int64List) ו-DT_STRING (BytesList).
  • context_ragged_value_types: RaggedTensor.value dtypes עבור תכונות ההקשר המרופט.
  • context_ragged_split_types: RaggedTensor.row_split dtypes עבור תכונות ההקשר המרופט.
  • 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_ragged_value_types: RaggedTensor.value dtypes עבור תכונות FeatureList המרופטות.
  • feature_list_ragged_split_types: RaggedTensor.row_split dtypes עבור תכונות FeatureList המרופטות.
  • 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 context_ragged_values
  • OutputList context_tragged_row_splits
  • 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
  • OutputList feature_list_ragged_values
  • OutputList feature_list_ragged_outer_splits
  • OutputList feature_list_tragged_inner_splits

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

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

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

context_dense_values
context_ragged_row_splits
context_ragged_values
context_sparse_indices
context_sparse_shapes
context_sparse_values
feature_list_dense_lengths
feature_list_dense_values
feature_list_ragged_inner_splits
feature_list_ragged_outer_splits
feature_list_ragged_values
feature_list_sparse_indices
feature_list_sparse_shapes
feature_list_sparse_values
operation

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

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

מבנים

tensorflow:: ops:: ParseSequenceExampleV2:: Attrs

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

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

context_dense_values

::tensorflow::OutputList context_dense_values

פיצולי_שורה_מרופטים

::tensorflow::OutputList context_ragged_row_splits

context_ragged_values

::tensorflow::OutputList context_ragged_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

תכונה_רשימת_פיצול_פנימי_מרופט

::tensorflow::OutputList feature_list_ragged_inner_splits

תכונה_רשימת_מפוצלות_חיצוניות

::tensorflow::OutputList feature_list_ragged_outer_splits

feature_list_ragged_values

::tensorflow::OutputList feature_list_ragged_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

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

ParseSequenceExampleV2

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

ParseSequenceExampleV2

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

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

ContextDenseShapes

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

ContextRaggedSplitTypes

Attrs ContextRaggedSplitTypes(
  const DataTypeSlice & x
)

ContextRaggedValueTypes

Attrs ContextRaggedValueTypes(
  const DataTypeSlice & x
)

ContextSparseTypes

Attrs ContextSparseTypes(
  const DataTypeSlice & x
)

FeatureListDenseShapes

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

FeatureListDenseTypes

Attrs FeatureListDenseTypes(
  const DataTypeSlice & x
)

FeatureListRaggedSplitTypes

Attrs FeatureListRaggedSplitTypes(
  const DataTypeSlice & x
)

FeatureListRaggedValueTypes

Attrs FeatureListRaggedValueTypes(
  const DataTypeSlice & x
)

FeatureListSparseTypes

Attrs FeatureListSparseTypes(
  const DataTypeSlice & x
)

NcontextSparse

Attrs NcontextSparse(
  int64 x
)

NfeatureListDense

Attrs NfeatureListDense(
  int64 x
)

NfeatureListSparse

Attrs NfeatureListSparse(
  int64 x
)