تدفق التوتر:: العمليات:: ParseSequenceExampleV2

#include <parsing_ops.h>

يحول متجه tf.io.SequenceExample protos (كسلاسل) إلى موترات مكتوبة.

ملخص

الحجج:

  • النطاق: كائن النطاق
  • متسلسل: عددي أو متجه يحتوي على نماذج تسلسلية ثنائية متسلسلة.
  • debug_name: عددي أو متجه يحتوي على أسماء النماذج الأولية المتسلسلة. قد يحتوي، على سبيل المثال، على اسم مفتاح الجدول (الوصفي) للنموذج الأولي المتسلسل المقابل. وهذا مفيد فقط لأغراض تصحيح الأخطاء، ووجود القيم هنا ليس له أي تأثير على الإخراج. قد يكون أيضًا متجهًا فارغًا في حالة عدم توفر اسم.
  • context_sparse_keys: المفاتيح المتوقعة في ميزات الأمثلة المرتبطة بقيم context_sparse.
  • context_dense_keys: المفاتيح المتوقعة في ميزات سياق SequenceExamples المرتبطة بالقيم الكثيفة.
  • context_ragged_keys: المفاتيح المتوقعة في ميزات الأمثلة المرتبطة بقيم context_ragged.
  • feature_list_sparse_keys: المفاتيح المتوقعة في قوائم الميزات المرتبطة بالقيم المتفرقة.
  • feature_list_dense_keys: المفاتيح المتوقعة في قوائم ميزات SequenceExamples المرتبطة بقوائم القيم الكثيفة.
  • feature_list_ragged_keys: المفاتيح المتوقعة في قوائم الميزات المرتبطة بالقيم المتعرجة.
  • feature_list_dense_missing_assumed_empty: متجه يقابل 1:1 مع featue_list_dense_keys، يشير إلى الميزات التي قد تكون مفقودة من SequenceExamples. إذا كانت قائمة الميزات المرتبطة مفقودة، فسيتم التعامل معها على أنها فارغة.
  • context_dense_defaults: قائمة بموترات Ncontext_dense (قد يكون بعضها فارغًا). يوفر context_dense_defaults[j] القيم الافتراضية عندما تفتقر خريطة سياق SequenceExample إلى context_dense_key[j]. إذا تم توفير Tensor فارغًا لـ 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: أنواع RaggedTensor.value dtypes لميزات السياق المتعرجة.
  • context_ragged_split_types: أنواع RaggedTensor.row_split d لميزات السياق المتعرجة.
  • 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؛ أنواع البيانات الموجودة في كل قائمة ميزات موجودة في feature_list_sparse_keys. يدعم ParseSingleSequenceExample حاليًا DT_FLOAT (FloatList)، وDT_INT64 (Int64List)، وDT_STRING (BytesList).
  • feature_list_ragged_value_types: أنواع RaggedTensor.value dtypes لميزات FeaturesList المتعرجة.
  • feature_list_ragged_split_types: أنواع RaggedTensor.row_split d لميزات FeaturesList المتعرجة.
  • feature_list_dense_shapes: قائمة بالأشكال Nfeature_list_dense؛ أشكال البيانات في كل قائمة ميزات موجودة في feature_list_dense_keys. يجب أن يكون شكل كل ميزة في قائمة الميزات المقابلة لـ feature_list_dense_key[j] مساويًا دائمًا لـ feature_list_dense_shapes[j].NumEntries().

عائدات:

  • OutputList context_sparse_indices
  • OutputList context_sparse_values
  • OutputList context_sparse_shapes
  • OutputList context_dense_values
  • OutputList context_ragged_values
  • OutputList context_ragged_row_splits
  • OutputList feature_list_sparse_indices
  • 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_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 .

الصفات العامة

context_dense_values

::tensorflow::OutputList context_dense_values

context_ragged_row_splits

::tensorflow::OutputList context_ragged_row_splits

context_ragged_values

::tensorflow::OutputList context_ragged_values

context_sparse_indices

::tensorflow::OutputList context_sparse_indices

context_sparse_shapes

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

::tensorflow::OutputList feature_list_ragged_inner_splits

feature_list_ragged_outer_splits

::tensorflow::OutputList feature_list_ragged_outer_splits

feature_list_ragged_values

::tensorflow::OutputList feature_list_ragged_values

feature_list_sparse_indices

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

أنواع السياق

Attrs ContextSparseTypes(
  const DataTypeSlice & x
)

قائمة المميزاتDenseShapes

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

FeaturesListDenseTypes

Attrs FeatureListDenseTypes(
  const DataTypeSlice & x
)

FeaturesListRaggedSplitTypes

Attrs FeatureListRaggedSplitTypes(
  const DataTypeSlice & x
)

FeaturesListRaggedValueTypes

Attrs FeatureListRaggedValueTypes(
  const DataTypeSlice & x
)

قائمة الميزاتSparseTypes

Attrs FeatureListSparseTypes(
  const DataTypeSlice & x
)

NcontextSparse

Attrs NcontextSparse(
  int64 x
)

NfeatureListDense

Attrs NfeatureListDense(
  int64 x
)

NfeatureListSparse

Attrs NfeatureListSparse(
  int64 x
)