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

#include <parsing_ops.h>

Brain.SequenceExample protokollerinin bir vektörünü (dizeler 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 vektör.
  • hata ayıklama_adı: Serileştirilmiş protokollerin adlarını içeren bir 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_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.
  • feature_list_dense_missing_assumed_empty: SequenceExamples'ta eksik olabilecek FeatureList anahtarlarını listeleyen bir vektör. İlişkili Özellik Listesi eksikse boş olarak değerlendirilir. Varsayılan olarak, bu vektörde listelenmeyen herhangi bir ÖzellikList'in SequenceExamples'ta mevcut olması gerekir.
  • context_sparse_keys: Ncontext_sparse dizisi Tensörlerinin (skalerler) listesi. Örneklerin özelliklerinde beklenen, context_sparse değerleriyle ilişkili anahtarlar.
  • context_dense_keys: Ncontext_dense dize Tensörlerinin (skalerler) listesi. Yoğun değerlerle ilişkili SequenceExamples bağlam özelliklerinde beklenen anahtarlar.
  • feature_list_sparse_keys: Nfeature_list_sparse dizesi Tensörlerinin (skalerler) listesi. Seyrek değerlerle ilişkili Özellik Listelerinde beklenen anahtarlar.
  • feature_list_dense_keys: Nfeature_list_dense dize Tensörlerinin (skalerler) listesi. Yoğun değer listeleriyle ilişkili SequenceExamples' feature_lists'te beklenen anahtarlar.

İ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_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_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 feature_list_sparse_indices
  • OutputList feature_list_sparse_values
  • OutputList feature_list_sparse_shapes
  • OutputList feature_list_dense_values
  • OutputList feature_list_dense_lengths

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

ParseSequenceExample (const :: tensorflow::Scope & scope, :: tensorflow::Input serialized, :: tensorflow::Input debug_name, :: tensorflow::InputList context_dense_defaults, const gtl::ArraySlice< string > & feature_list_dense_missing_assumed_empty, const gtl::ArraySlice< string > & context_sparse_keys, const gtl::ArraySlice< string > & context_dense_keys, const gtl::ArraySlice< string > & feature_list_sparse_keys, const gtl::ArraySlice< string > & feature_list_dense_keys)
ParseSequenceExample (const :: tensorflow::Scope & scope, :: tensorflow::Input serialized, :: tensorflow::Input debug_name, :: tensorflow::InputList context_dense_defaults, const gtl::ArraySlice< string > & feature_list_dense_missing_assumed_empty, const gtl::ArraySlice< string > & context_sparse_keys, const gtl::ArraySlice< string > & context_dense_keys, const gtl::ArraySlice< string > & feature_list_sparse_keys, const gtl::ArraySlice< string > & feature_list_dense_keys, const ParseSequenceExample::Attrs & attrs)

Genel özellikler

context_dense_values
context_sparse_indices
context_sparse_shapes
context_sparse_values
feature_list_dense_lengths
feature_list_dense_values
feature_list_sparse_indices
feature_list_sparse_shapes
feature_list_sparse_values
operation

Genel statik işlevler

ContextDenseShapes (const gtl::ArraySlice< PartialTensorShape > & x)
ContextSparseTypes (const DataTypeSlice & x)
FeatureListDenseShapes (const gtl::ArraySlice< PartialTensorShape > & x)
FeatureListDenseTypes (const DataTypeSlice & x)
FeatureListSparseTypes (const DataTypeSlice & x)
NcontextDense (int64 x)
NcontextSparse (int64 x)
NfeatureListDense (int64 x)
NfeatureListSparse (int64 x)

Yapılar

tensorflow:: ops:: Ayrıştırma SırasıÖrnek:: Öznitelikler

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

Genel özellikler

bağlam_yoğun_değerleri

::tensorflow::OutputList context_dense_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_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ı Örneği

 ParseSequenceExample(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input serialized,
  ::tensorflow::Input debug_name,
  ::tensorflow::InputList context_dense_defaults,
  const gtl::ArraySlice< string > & feature_list_dense_missing_assumed_empty,
  const gtl::ArraySlice< string > & context_sparse_keys,
  const gtl::ArraySlice< string > & context_dense_keys,
  const gtl::ArraySlice< string > & feature_list_sparse_keys,
  const gtl::ArraySlice< string > & feature_list_dense_keys
)

Ayrıştırma Sırası Örneği

 ParseSequenceExample(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input serialized,
  ::tensorflow::Input debug_name,
  ::tensorflow::InputList context_dense_defaults,
  const gtl::ArraySlice< string > & feature_list_dense_missing_assumed_empty,
  const gtl::ArraySlice< string > & context_sparse_keys,
  const gtl::ArraySlice< string > & context_dense_keys,
  const gtl::ArraySlice< string > & feature_list_sparse_keys,
  const gtl::ArraySlice< string > & feature_list_dense_keys,
  const ParseSequenceExample::Attrs & attrs
)

Genel statik işlevler

BağlamYoğunŞekiller

Attrs ContextDenseShapes(
  const gtl::ArraySlice< PartialTensorShape > & 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 ListesiSparseTypes

Attrs FeatureListSparseTypes(
  const DataTypeSlice & x
)

NcontextDense

Attrs NcontextDense(
  int64 x
)

NcontextSparse

Attrs NcontextSparse(
  int64 x
)

NfeatureListDense

Attrs NfeatureListDense(
  int64 x
)

NfeatureListSparse

Attrs NfeatureListSparse(
  int64 x
)