tensor akışı:: işlem:: Ayrıştırma SırasıÖrnekV2

#include <parsing_ops.h>

Bir tf.io.SequenceExample protokol vektörünü (dize olarak) yazılan tensörlere dönüştürür.

Özet

Argümanlar:

  • kapsam: Bir Kapsam nesnesi
  • serileştirilmiş: İkili serileştirilmiş SequenceExample protokollerini içeren bir skaler veya vektör.
  • hata ayıklama_adı: Serileştirilmiş protokollerin adlarını içeren bir skaler veya vektör. Örneğin karşılık gelen serileştirilmiş protokol için tablo anahtarı (açıklayıcı) adını içerebilir. Bu tamamen hata ayıklama amacıyla kullanışlıdır ve buradaki değerlerin varlığının çıktı üzerinde hiçbir etkisi yoktur. İsim yoksa boş bir vektör de olabilir.
  • context_sparse_keys: Örneklerin özelliklerinde context_sparse değerleriyle ilişkili beklenen anahtarlar.
  • context_dense_keys: Yoğun değerlerle ilişkili SequenceExamples bağlam özelliklerinde beklenen anahtarlar.
  • context_ragged_keys: Örneklerin özelliklerinde context_ragged değerleriyle ilişkili beklenen anahtarlar.
  • feature_list_sparse_keys: Seyrek değerlerle ilişkili Özellik Listelerinde beklenen anahtarlar.
  • feature_list_dense_keys: Yoğun değer listeleriyle ilişkili SequenceExamples' feature_lists'te beklenen anahtarlar.
  • feature_list_ragged_keys: Düzensiz değerlerle ilişkili Özellik Listelerinde beklenen anahtarlar.
  • feature_list_dense_missing_assumed_empty: Feue_list_dense_keys ile 1:1'e karşılık gelen ve SequenceExamples'ta hangi özelliklerin eksik olabileceğini belirten bir vektör. İlişkili Özellik Listesi eksikse boş olarak değerlendirilir.
  • context_dense_defaults: Ncontext_dense Tensörlerinin listesi (bazıları boş olabilir). context_dense_defaults[j], SequenceExample'ın bağlam haritasında context_dense_key[j] bulunmadığında varsayılan değerleri sağlar. context_dense_defaults[j] için boş bir Tensör sağlanırsa, context_dense_keys[j] Özelliği gereklidir. Giriş türü, boş olsa bile context_dense_defaults[j] öğesinden çıkarılır. context_dense_defaults[j] boş değilse şeklinin context_dense_shapes[j] ile eşleşmesi gerekir.

İsteğe bağlı özellikler (bkz. Attrs ):

  • context_sparse_types: Ncontext_sparse türlerinin listesi; her bağlamdaki verilerin veri türleri context_sparse_keys'de verilen özellik. Şu anda ParseSingleSequenceExample , DT_FLOAT (FloatList), DT_INT64 (Int64List) ve DT_STRING'i (BytesList) desteklemektedir.
  • context_ragged_value_types: Düzensiz bağlam özellikleri için RaggedTensor.value dtypes.
  • context_ragged_split_types: Düzensiz bağlam özellikleri için RaggedTensor.row_split dtypes.
  • context_dense_shapes: Ncontext_dense şekillerinin listesi; her bağlamdaki verilerin şekilleri context_dense_keys'de verilen özellik. Özellikteki context_dense_key[j]'ye karşılık gelen öğelerin sayısı her zaman context_dense_shapes[j].NumEntries()'a eşit olmalıdır. context_dense_values[j]'nin şekli context_dense_shapes[j] ile eşleşecektir.
  • feature_list_sparse_types: Nfeature_list_sparse türlerinin listesi; feature_list_sparse_keys'de verilen her bir Özellik Listesindeki verilerin veri türleri. Şu anda ParseSingleSequenceExample , DT_FLOAT (FloatList), DT_INT64 (Int64List) ve DT_STRING'i (BytesList) desteklemektedir.
  • feature_list_ragged_value_types: Düzensiz FeatureList özellikleri için RaggedTensor.value dtypes.
  • feature_list_ragged_split_types: Düzensiz FeatureList özellikleri için RaggedTensor.row_split türleri.
  • feature_list_dense_shapes: Nfeature_list_dense şekillerinin listesi; feature_list_dense_keys'de verilen her Özellik Listesindeki verilerin şekilleri. feature_list_dense_key[j]'ye karşılık gelenFeatureList'teki her Özelliğin şekli her zaman feature_list_dense_shapes[j].NumEntries()'a eşit olmalıdır.

İadeler:

  • 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

Yapıcılar ve Yıkıcılar

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)

Genel özellikler

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

Genel statik işlevler

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)

Yapılar

tensorflow:: ops:: ParseSequenceExampleV2:: Öznitelikler

ParseSequenceExampleV2 için isteğe bağlı öznitelik ayarlayıcılar.

Genel özellikler

bağlam_yoğun_değerleri

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

::tensorflow::OutputList context_sparse_indices

context_sparse_shapes

::tensorflow::OutputList context_sparse_shapes

bağlam_sparse_değerleri

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

operasyon

Operation operation

Kamu işlevleri

Ayrıştırma SırasıÖrnekV2

 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
)

Ayrıştırma SırasıÖrnekV2

 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
)

Genel statik işlevler

BağlamYoğunŞekiller

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

BağlamRaggedSplitTypes

Attrs ContextRaggedSplitTypes(
  const DataTypeSlice & x
)

BağlamRaggedValueTypes

Attrs ContextRaggedValueTypes(
  const DataTypeSlice & x
)

BağlamSparseTypes

Attrs ContextSparseTypes(
  const DataTypeSlice & x
)

Özellik ListesiYoğunŞekiller

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

Özellik ListesiYoğun Türler

Attrs FeatureListDenseTypes(
  const DataTypeSlice & x
)

Özellik ListesiRaggedSplitTypes

Attrs FeatureListRaggedSplitTypes(
  const DataTypeSlice & x
)

Özellik ListesiRaggedValueTypes

Attrs FeatureListRaggedValueTypes(
  const DataTypeSlice & x
)

Özellik ListesiSparseTypes

Attrs FeatureListSparseTypes(
  const DataTypeSlice & x
)

NcontextSparse

Attrs NcontextSparse(
  int64 x
)

NfeatureListDense

Attrs NfeatureListDense(
  int64 x
)

NfeatureListSparse

Attrs NfeatureListSparse(
  int64 x
)