tensorflow::ops::ParseSequenceExampleV2

#include <parsing_ops.h>

แปลงเวกเตอร์ของโปรโต tf.io.SequenceExample (ในรูปแบบสตริง) ให้เป็นเทนเซอร์แบบมีประเภท

สรุป

ข้อโต้แย้ง:

  • ขอบเขต: วัตถุ ขอบเขต
  • serialized: ค่าสเกลาร์หรือเวกเตอร์ที่บรรจุโปรโตไทป์ SequenceExample ที่ถูกแปลงเป็นไบนารีแล้ว
  • debug_name: ค่าสเกลาร์หรือเวกเตอร์ที่ประกอบด้วยชื่อของโปรโตที่ถูกแปลงเป็นรูปแบบอนุกรม อาจมีตัวอย่างเช่น ชื่อคีย์ตาราง (เชิงพรรณนา) สำหรับโปรโตที่ถูกแปลงเป็นรูปแบบอนุกรมที่เกี่ยวข้อง ค่านี้มีประโยชน์เฉพาะสำหรับการดีบักเท่านั้น และการมีค่าอยู่ในส่วนนี้ไม่มีผลต่อผลลัพธ์ อาจเป็นเวกเตอร์ว่างหากไม่มีชื่อให้ใช้งาน
  • context_sparse_keys: คีย์ที่คาดว่าจะพบในฟีเจอร์ของตัวอย่างที่เชื่อมโยงกับค่า context_sparse
  • context_dense_keys: คีย์ที่คาดว่าจะพบในคุณลักษณะบริบทของ SequenceExamples ที่เชื่อมโยงกับค่าแบบหนาแน่น
  • context_ragged_keys: คีย์ที่คาดหวังในฟีเจอร์ของตัวอย่างที่เชื่อมโยงกับค่า context_ragged
  • feature_list_sparse_keys: คีย์ที่คาดว่าจะอยู่ใน FeatureLists ที่เชื่อมโยงกับค่าแบบ sparse
  • feature_list_dense_keys: คีย์ที่คาดว่าจะอยู่ใน feature_lists ของ SequenceExamples ซึ่งเชื่อมโยงกับรายการค่าแบบหนาแน่น (dense values)
  • 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] จะต้องระบุ 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 สำหรับคุณลักษณะบริบทที่ไม่สม่ำเสมอ
  • context_ragged_split_types: ประเภทข้อมูล RaggedTensor.row_split สำหรับคุณลักษณะบริบทแบบไม่สม่ำเสมอ
  • context_dense_shapes: รายการของรูปร่าง Ncontext_dense; รูปร่างของข้อมูลในแต่ละ Feature บริบทที่กำหนดใน context_dense_keys จำนวนองค์ประกอบใน Feature ที่สอดคล้องกับ context_dense_key[j] จะต้องเท่ากับ context_dense_shapes[j].NumEntries() เสมอ รูปร่างของ context_dense_values[j] จะตรงกับ context_dense_shapes[j]
  • feature_list_sparse_types: รายการของ Nfeature_list_sparse types; ประเภทข้อมูลของข้อมูลในแต่ละ FeatureList ที่ระบุใน feature_list_sparse_keys ปัจจุบัน ParseSingleSequenceExample รองรับ DT_FLOAT (FloatList), DT_INT64 (Int64List) และ DT_STRING (BytesList)
  • feature_list_ragged_value_types: ประเภทข้อมูล RaggedTensor.value สำหรับคุณลักษณะ FeatureList ที่มีการกระจายค่าไม่สม่ำเสมอ
  • feature_list_ragged_split_types: ประเภทข้อมูล RaggedTensor.row_split สำหรับฟีเจอร์ 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
  • ค่าแบบสปาร์สของ OutputList
  • OutputList บริบท_รูปร่างแบบเบาบาง
  • ค่าหนาแน่นตามบริบท OutputList
  • ค่าที่ขาดหายในบริบท OutputList
  • การแยกแถวตามบริบท OutputList
  • 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

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

ค่าความหนาแน่นบริบท

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

หน้าที่สาธารณะ

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
)

ประเภทการแบ่งแบบไม่สม่ำเสมอตามบริบท

Attrs ContextRaggedSplitTypes(
  const DataTypeSlice & x
)

ประเภทค่าแบบสุ่มตามบริบท

Attrs ContextRaggedValueTypes(
  const DataTypeSlice & x
)

คอนเท็กซ์สปาร์สไทป์

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
)

ประเภทค่าแบบสุ่มของรายการคุณสมบัติ

Attrs FeatureListRaggedValueTypes(
  const DataTypeSlice & x
)

FeatureListSparseTypes

Attrs FeatureListSparseTypes(
  const DataTypeSlice & x
)

เอ็นคอนเท็กซ์สปาร์ส

Attrs NcontextSparse(
  int64 x
)

NfeatureListDense

Attrs NfeatureListDense(
  int64 x
)

รายการคุณสมบัติแบบเบาบาง

Attrs NfeatureListSparse(
  int64 x
)