tensor akışı:: işlem:: SerileştirmeBirçokSparse
#include <sparse_ops.h> Bir N -minibatch SparseTensor bir [N, 3] Tensor nesnesine serileştirin.
Özet
SparseTensor R derecesi 1'den büyük olmalıdır ve ilk boyut, mini parti boyutu olarak ele alınır. SparseTensor elemanları bu ilk boyuta göre artan düzende sıralanmalıdır. Her serialized_sparse satırına giren serileştirilmiş SparseTensor nesneleri R-1 derecesine sahip olacaktır.
Mini parti boyutu N sparse_shape[0] öğesinden çıkarılır.
Argümanlar:
- kapsam: Bir Kapsam nesnesi
- sparse_indeksler: 2-B. Mini parti
SparseTensorindices. - seyrek_değerler: 1-D. Mini parti
SparseTensorvalues. - seyrek_şekil: 1-B. Mini parti
SparseTensorshape.
İsteğe bağlı özellikler (bkz. Attrs ):
- out_type: Serileştirme için kullanılacak
dtype; desteklenen türlerstring(varsayılan) vevariant.
İade:
-
Output: Serileştirilmiş_seyrek tensör.
Yapıcılar ve Yıkıcılar | |
|---|---|
SerializeManySparse (const :: tensorflow::Scope & scope, :: tensorflow::Input sparse_indices, :: tensorflow::Input sparse_values, :: tensorflow::Input sparse_shape) | |
SerializeManySparse (const :: tensorflow::Scope & scope, :: tensorflow::Input sparse_indices, :: tensorflow::Input sparse_values, :: tensorflow::Input sparse_shape, const SerializeManySparse::Attrs & attrs) |
Genel özellikler | |
|---|---|
operation | |
serialized_sparse | |
Kamu işlevleri | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
Genel statik işlevler | |
|---|---|
OutType (DataType x) | |
Yapılar | |
|---|---|
| tensorflow:: ops:: SerializeManySparse:: Öznitelikler | SerializeManySparse için isteğe bağlı öznitelik ayarlayıcıları. |
Genel özellikler
operasyon
Operation operation
serileştirilmiş_sparse
::tensorflow::Output serialized_sparse
Kamu işlevleri
SerileştirmeBirçokSparse
SerializeManySparse( const ::tensorflow::Scope & scope, ::tensorflow::Input sparse_indices, ::tensorflow::Input sparse_values, ::tensorflow::Input sparse_shape )
SerileştirmeBirçokSparse
SerializeManySparse( const ::tensorflow::Scope & scope, ::tensorflow::Input sparse_indices, ::tensorflow::Input sparse_values, ::tensorflow::Input sparse_shape, const SerializeManySparse::Attrs & attrs )
düğüm
::tensorflow::Node * node() const
operatör::tensorflow::Giriş
operator::tensorflow::Input() const
operatör::tensorflow::Çıktı
operator::tensorflow::Output() const
Genel statik işlevler
Çıkış Türü
Attrs OutType( DataType x )