tensorflow:: ops:: ניתוחרצףדוגמהV2

#include <parsing_ops.h>

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

תַקצִיר

טיעונים:

  • היקף: אובייקט היקף
  • סידורי: סקלר או וקטור המכיל פרוטוקולים בינאריים מסוג SequenceExample שעברו סידור.
  • debug_name: סקלר או וקטור המכיל את שמות הפרוטו-פרוטו שעברו סדרה. יכול להכיל, לדוגמה, שם מפתח טבלה (תיאורי) עבור הפרוטו שעבר סדרה תואם. זה שימושי אך ורק למטרות ניפוי שגיאות, ולנוכחות ערכים כאן אין השפעה על הפלט. יכול להיות גם וקטור ריק אם אין שם זמין.
  • context_sparse_keys: המפתחות הצפויים בתכונות של ה-Examples הקשורות לערכי context_sparse.
  • context_dense_keys: המפתחות הצפויים בתכונות ההקשר של SequenceExamples הקשורות לערכים צפופים.
  • context_ragged_keys: המפתחות הצפויים בתכונות של ה-Examples הקשורות לערכי context_ragged.
  • feature_list_sparse_keys: המפתחות הצפויים ב-FeatureLists המשויכים לערכים sparse.
  • feature_list_dense_keys: המפתחות הצפויים ב-feature_lists של SequenceExamples המשויכים לרשימות של ערכים צפופים.
  • feature_list_ragged_keys: המפתחות הצפויים ב-FeatureLists המשויכים לערכים מחוספסים.
  • feature_list_dense_missing_assumed_empty: וקטור התואם 1:1 עם feature_list_dense_keys, המציין אילו תכונות עשויות להיות חסרות ב-SequenceExamples. אם FeatureList המשויך חסר, הוא מטופל כריק.
  • context_dense_defaults: רשימה של טנזורים מסוג Ncontext_dense (חלקם עשויים להיות ריקים). context_dense_defaults[j] מספק ערכי ברירת מחדל כאשר מפת ההקשר של SequenceExample חסרה context_dense_key[j]. אם טנזור ריק מסופק עבור context_dense_defaults[j], אז נדרשת התכונה 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: סוגי dtypes של RaggedTensor.value עבור תכונות ההקשר המשוננות.
  • context_ragged_split_types: סוגי dtypes של RaggedTensor.row_split עבור תכונות ההקשר המשוחררות.
  • 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: סוגי dtypes של RaggedTensor.value עבור התכונות בעלות רשימת תכונות מחוספסת.
  • feature_list_ragged_split_types: סוגי ה-dtypes RaggedTensor.row_split עבור התכונות בעלות רשימת התכונות המגושמות.
  • feature_list_dense_shapes: רשימה של צורות Nfeature_list_dense; צורות הנתונים בכל FeatureList הנתונות ב-feature_list_dense_keys. צורת כל Feature ב-FeatureList המתאימה ל-feature_list_dense_key[j] חייבת תמיד להיות שווה ל-feature_list_dense_shapes[j].NumEntries().

החזרות:

  • OutputList
  • OutputList ערכים_דלילים_הקשריים
  • OutputList צורות_דלילות_הקשר
  • OutputList ערכים_צפופי_הקשר
  • OutputList ערכים_הקשריים_שנורים
  • OutputList context_ragged_row_splits
  • OutputList
  • OutputList feature_list
  • OutputList
  • OutputList
  • OutputList feature_list_dense_lengths
  • OutputList feature_list
  • OutputList feature_list_ragged_outer_splits
  • OutputList feature_list_ragged_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 .

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

ערכי_צפופי_הקשר

::tensorflow::OutputList context_dense_values

פיצולי_שורה_משוננים_בהקשר

::tensorflow::OutputList context_ragged_row_splits

ערכים_משוננים_בהקשר

::tensorflow::OutputList context_ragged_values

אינדקסים_דלילים_הקשר

::tensorflow::OutputList context_sparse_indices

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

::tensorflow::OutputList context_sparse_shapes

ערכים_דלילים_בהקשר

::tensorflow::OutputList context_sparse_values

רשימת_תכונות_אורכים_צפופים

::tensorflow::OutputList feature_list_dense_lengths

ערכי_צפיפות_רשימת_תכונות

::tensorflow::OutputList feature_list_dense_values

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

::tensorflow::OutputList feature_list_ragged_inner_splits

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

::tensorflow::OutputList feature_list_ragged_outer_splits

רשימת_תכונות_ערכים_משוננים

::tensorflow::OutputList feature_list_ragged_values

רשימת_תכונות_מדדים_דלילים

::tensorflow::OutputList feature_list_sparse_indices

רשימת_תכונות_צורות_דלילות

::tensorflow::OutputList feature_list_sparse_shapes

רשימת_תכונות_ערכים_דלילים

::tensorflow::OutputList feature_list_sparse_values

מִבצָע

Operation operation

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

ניתוח רצףדוגמה V2

 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
)

ניתוח רצףדוגמה V2

 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
)

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

צורות צפופות בהקשר

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

סוגי פיצול הקשר

Attrs ContextRaggedSplitTypes(
  const DataTypeSlice & x
)

סוגי ערך משופשפים בהקשר

Attrs ContextRaggedValueTypes(
  const DataTypeSlice & x
)

סוגי דלילי הקשר

Attrs ContextSparseTypes(
  const DataTypeSlice & x
)

רשימת תכונותצורות צפופות

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

רשימת תכונותסוגים צפופים

Attrs FeatureListDenseTypes(
  const DataTypeSlice & x
)

רשימת תכונות RaggedSplitTypes

Attrs FeatureListRaggedSplitTypes(
  const DataTypeSlice & x
)

רשימת תכונות סוגים של ערכים שחוקים

Attrs FeatureListRaggedValueTypes(
  const DataTypeSlice & x
)

רשימת תכונות סוגים דלילים

Attrs FeatureListSparseTypes(
  const DataTypeSlice & x
)

דליל בהקשר

Attrs NcontextSparse(
  int64 x
)

רשימת תכונות צפופה

Attrs NfeatureListDense(
  int64 x
)

רשימת תכונות דלילה

Attrs NfeatureListSparse(
  int64 x
)