เทนเซอร์โฟลว์:: ปฏิบัติการ:: ParseSequenceตัวอย่างV2

#include <parsing_ops.h>

แปลงเวกเตอร์ของโปรโตส tf.io.SequenceExample (เป็นสตริง) เป็นเทนเซอร์ที่พิมพ์

สรุป

ข้อโต้แย้ง:

  • ขอบเขต: วัตถุ ขอบเขต
  • ทำให้เป็นอนุกรม: สเกลาร์หรือเวกเตอร์ที่มีโปรโตส 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: รายการ Ncontext_dense Tensors (บางส่วนอาจว่างเปล่า) 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 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_indices
  • OutputList context_sparse_values
  • OutputList context_sparse_shapes
  • OutputList context_dense_values
  • OutputList context_ragged_values
  • OutputList context_ragged_row_splits
  • OutputList คุณลักษณะ_รายการ_sparse_indices
  • OutputList คุณลักษณะ_รายการ_sparse_values
  • OutputList คุณลักษณะ_รายการ_sparse_shapes
  • OutputList คุณลักษณะ_รายการ_หนาแน่น_ค่า
  • OutputList คุณลักษณะ_รายการ_หนาแน่น_ความยาว
  • คุณลักษณะ OutputList
  • OutputList คุณลักษณะ_list_ragged_outer_splits
  • OutputList คุณลักษณะ_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)

โครงสร้าง

เทนเซอร์โฟลว์:: ops:: ParseSequenceExampleV2:: Attrs

ตัวตั้งค่าแอ็ตทริบิวต์ทางเลือกสำหรับ ParseSequenceExampleV2

คุณลักษณะสาธารณะ

context_dense_values

::tensorflow::OutputList context_dense_values

บริบท_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

คุณลักษณะ_รายการ_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

งานสาธารณะ

ParseSequenceตัวอย่าง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
)

ParseSequenceตัวอย่าง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
)

ฟังก์ชันคงที่สาธารณะ

บริบทDenseShapes

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

บริบทRaggedSplitTypes

Attrs ContextRaggedSplitTypes(
  const DataTypeSlice & x
)

บริบทRaggedValueTypes

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
)