tensorflow::ops::ParseSequenceExampleV2

#include <parsing_ops.h>

یک بردار از پروتوهای tf.io.SequenceExample (به عنوان رشته) را به تانسورهای نوع‌دار تبدیل می‌کند.

خلاصه

استدلال‌ها:

  • دامنه: یک شیء دامنه
  • سریالی شده: یک اسکالر یا بردار حاوی نمونه‌های سریالی شده دودویی.
  • debug_name: یک اسکالر یا بردار حاوی نام پروتوهای سریالی شده. برای مثال، ممکن است شامل نام کلید جدول (توصیفی) برای پروتوهای سریالی شده مربوطه باشد. این صرفاً برای اهداف اشکال‌زدایی مفید است و وجود مقادیر در اینجا هیچ تأثیری بر خروجی ندارد. همچنین اگر نامی در دسترس نباشد، می‌تواند یک بردار خالی باشد.
  • کلیدهای_گسست_زمینه: کلیدهای مورد انتظار در ویژگی‌های مثال‌ها که با مقادیر_گسست_زمینه مرتبط هستند.
  • کلیدهای_فشرده_زمینه (context_dense_keys): کلیدهای مورد انتظار در زمینه‌ی SequenceExamples ویژگی‌های مرتبط با مقادیر متراکم را دارند.
  • کلیدهای context_ragged: کلیدهای مورد انتظار در ویژگی‌های مثال‌ها که با مقادیر context_ragged مرتبط هستند.
  • feature_list_sparse_keys: کلیدهای مورد انتظار در FeatureLists مرتبط با مقادیر پراکنده.
  • feature_list_dense_keys: کلیدهای مورد انتظار در feature_listهای SequenceExamples که با لیست‌های مقادیر متراکم مرتبط هستند.
  • feature_list_ragged_keys: کلیدهای مورد انتظار در FeatureLists مرتبط با مقادیر ragged.
  • feature_list_dense_missing_assumed_empty: یک بردار متناظر ۱:۱ با featue_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 ویژگی داده شده در context_sparse_keys. در حال حاضر ParseSingleSequenceExample از DT_FLOAT (FloatList)، DT_INT64 (Int64List) و DT_STRING (BytesList) پشتیبانی می‌کند.
  • context_ragged_value_types: انواع داده‌ی RaggedTensor.value برای ویژگی‌های زمینه‌ی ragged.
  • context_ragged_split_types: انواع داده‌ی RaggedTensor.row_split برای ویژگی‌های زمینه‌ی ناهموار.
  • context_dense_shapes: فهرستی از شکل‌های Ncontext_dense؛ شکل‌های داده‌ها در هر ویژگی context که در 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 برای ویژگی‌های Ragged FeatureList.
  • feature_list_ragged_split_types: انواع داده‌ی RaggedTensor.row_split برای ویژگی‌های Ragged FeatureList.
  • 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 context_sparse_indices
  • مقادیر پراکنده‌ی زمینه OutputList
  • شکل‌های پراکنده‌ی متن OutputList
  • OutputList
  • مقادیر زمینه‌ایِ OutputList
  • OutputList context_ragged_row_splits
  • OutputList feature_list_sparse_indices
  • مقادیر پراکنده‌ی OutputList
  • شکل‌های پراکنده‌ی OutputList
  • OutputList
  • OutputList
  • مقادیر_ OutputList
  • 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

context_ragged_row_splits

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

feature_list_ragged_inner_splits

::tensorflow::OutputList feature_list_ragged_inner_splits

feature_list_ragged_outer_splits

::tensorflow::OutputList feature_list_ragged_outer_splits

مقادیر_ragged_list_feature

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

کارکردهای عمومی

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
)

توابع استاتیک عمومی

شکل‌های زمینه‌ای

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

ContextRaggedSplitTypes

Attrs ContextRaggedSplitTypes(
  const DataTypeSlice & x
)

انواع مقادیر ContextRagged

Attrs ContextRaggedValueTypes(
  const DataTypeSlice & x
)

ContextSparseTypes

Attrs ContextSparseTypes(
  const DataTypeSlice & x
)

شکل‌های متراکم فهرست ویژگی‌ها

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

انواع فهرست ویژگی‌ها

Attrs FeatureListDenseTypes(
  const DataTypeSlice & x
)

انواع تقسیم‌شده‌ی فهرست ویژگی‌ها

Attrs FeatureListRaggedSplitTypes(
  const DataTypeSlice & x
)

انواع مقادیر RaggedListFeature

Attrs FeatureListRaggedValueTypes(
  const DataTypeSlice & x
)

انواع پراکنده فهرست ویژگی‌ها

Attrs FeatureListSparseTypes(
  const DataTypeSlice & x
)

متن پراکنده

Attrs NcontextSparse(
  int64 x
)

NfeatureListDense

Attrs NfeatureListDense(
  int64 x
)

NfeatureList پراکنده

Attrs NfeatureListSparse(
  int64 x
)