Google I/O'yu ayarladığınız için teşekkür ederiz. İsteğe bağlı olarak tüm oturumları görüntüleyin İsteğe bağlı olarak izleyin

tensör akışı:: operasyon:: AyrıştırmaSıraÖrneği

#include <parsing_ops.h>

Bir beyin vektörünü dönüştürür.SequenceExample protos (dizeler olarak) yazılan tensörlere.

Özet

Argümanlar:

  • kapsam: Bir Kapsam nesnesi
  • serialized: İkili serileştirilmiş SequenceExample protokollerini içeren bir vektör.
  • debug_name: Serileştirilmiş protokollerin adlarını içeren bir vektör. Örneğin, ilgili serileştirilmiş protokol için tablo anahtarı (açıklayıcı) adı içerebilir. Bu tamamen hata ayıklama amaçları için kullanışlıdır ve burada değerlerin varlığının çıktı üzerinde hiçbir etkisi yoktur. Ad 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] olmadığında varsayılan değerler sağlar. context_dense_defaults[j] için boş bir Tensör sağlanırsa, context_dense_keys[j] Özelliği gereklidir. Girdi türü, boş olduğunda bile context_dense_defaults[j] öğesinden çıkarılır. context_dense_defaults[j] boş değilse, şekli context_dense_shapes[j] ile eşleşmelidir.
  • feature_list_dense_missing_assumed_empty: SequenceExamples'ta eksik olabilecek FeatureList anahtarlarını listeleyen bir vektör. İlişkili FeatureList eksikse boş olarak kabul edilir. Varsayılan olarak, bu vektörde listelenmeyen herhangi bir FeatureList, SequenceExamples'ta bulunmalıdır.
  • context_sparse_keys: Ncontext_sparse dize Tensörlerinin (skaler) listesi. Örneklerin bağlam_sparse değerleriyle ilişkili özelliklerinde beklenen anahtarlar.
  • context_dense_keys: Ncontext_dense dize Tensörlerinin (skaler) listesi. Yoğun değerlerle ilişkili SequenceExamples bağlam özelliklerinde beklenen anahtarlar.
  • feature_list_sparse_keys: Nfeature_list_sparse dize Tensörlerinin (skaler) listesi. Seyrek değerlerle ilişkili Özellik Listelerinde beklenen anahtarlar.
  • feature_list_dense_keys: Nfeature_list_dense dize Tensörlerinin (skaler) listesi. Yoğun değerler listeleriyle ilişkili SequenceExamples'ın feature_lists'inde beklenen anahtarlar.

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

  • context_sparse_types: Ncontext_sparse türlerinin listesi; bağlam_sparse_keys içinde verilen her bir bağlamdaki veri türleri Özellik. Şu anda ParseSingleSequenceExample , DT_FLOAT (FloatList), DT_INT64 (Int64List) ve DT_STRING (BytesList) destekler.
  • context_dense_shapes: Ncontext_dense şekillerin listesi; her bağlamdaki verilerin şekilleri context_dense_keys içinde verilen özellik. Özellikteki context_dense_key[j]'ye karşılık gelen öğelerin sayısı her zaman context_dense_shapes[j].NumEntries()'e eşit olmalıdır. context_dense_values[j]'nin şekli, context_dense_shapes[j] ile eşleşecek.
  • feature_list_sparse_types: Nfeature_list_sparse türlerinin listesi; feature_list_sparse_keys içinde verilen her FeatureList'teki veri veri türleri. Şu anda ParseSingleSequenceExample , DT_FLOAT (FloatList), DT_INT64 (Int64List) ve DT_STRING (BytesList) destekler.
  • feature_list_dense_shapes: Nfeature_list_dense şekillerin listesi; feature_list_dense_keys içinde verilen her bir FeatureList'teki verilerin şekilleri. FeatureList'teki feature_list_dense_key[j]'e karşılık gelen her bir Özelliğin şekli her zaman feature_list_dense_shapes[j].NumEntries()'e eşit olmalıdır.

İadeler:

  • OutputList bağlam_sparse_indices
  • OutputList bağlam_sparse_değerleri
  • OutputList context_sparse_shapes
  • OutputList bağlam_yoğun_değerleri
  • 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:: ParseSequenceÖrnek:: Öznitelikler

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

Genel özellikler

bağlam_dense_değerleri

::tensorflow::OutputList context_dense_values

bağlam_sparse_indices

::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ırmaSıraÖ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ırmaSıraÖ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
)

ÖzellikListesiDenseShapes

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

ÖzellikListesiDenseTypes

Attrs FeatureListDenseTypes(
  const DataTypeSlice & x
)

Özellik ListesiSparseTypes

Attrs FeatureListSparseTypes(
  const DataTypeSlice & x
)

NcontextDense

Attrs NcontextDense(
  int64 x
)

NcontextSparse

Attrs NcontextSparse(
  int64 x
)

NözellikListesiYoğun

Attrs NfeatureListDense(
  int64 x
)

Özellik ListesiSparse

Attrs NfeatureListSparse(
  int64 x
)