tensorflow::ops::SparseMatMul
#include <math_ops.h>"a" matrisini "b" matrisiyle çarpın .
Özet
Girişler iki boyutlu matrisler olmalı ve "a"nın iç boyutu "b"nin dış boyutuna eşit olmalıdır. Hem "a" hem de "b" SparseTensor değil, Tensor olmalıdır. Bu işlem, "a" veya "b"den en az birinin seyrek olduğu, yani büyük oranda sıfır değere sahip olduğu durum için optimize edilmiştir. Bir platformda bu yöntemin yoğun matris çarpımına kıyasla performans denge noktası, seyrek matriste %30 sıfır değer olarak belirlenmiştir.
Bu işlemin gradyan hesaplaması, giriş gradyanı ReLU fonksiyonundan geldiğinde yalnızca bu gradyanın seyreklik özelliğinden yararlanacaktır.
Argümanlar:
- kapsam: Bir Kapsam nesnesi
İadeler:
-
Output: Çarpım tensörü.
Yapıcılar ve Yıkıcılar | |
|---|---|
SparseMatMul (const :: tensorflow::Scope & scope, :: tensorflow::Input a, :: tensorflow::Input b) | |
SparseMatMul (const :: tensorflow::Scope & scope, :: tensorflow::Input a, :: tensorflow::Input b, const SparseMatMul::Attrs & attrs) |
Genel özellikler | |
|---|---|
operation | |
product | |
Kamusal işlevler | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
Herkese açık statik fonksiyonlar | |
|---|---|
AIsSparse (bool x) | |
BIsSparse (bool x) | |
TransposeA (bool x) | |
TransposeB (bool x) | |
Yapılar | |
|---|---|
| tensorflow::ops::SparseMatMul::Attrs | SparseMatMul için isteğe bağlı öznitelik ayarlayıcıları. |
Genel özellikler
operasyon
Operation operation
ürün
::tensorflow::Output product
Kamusal işlevler
SeyrekMatÇarpımı
SparseMatMul( const ::tensorflow::Scope & scope, ::tensorflow::Input a, ::tensorflow::Input b )
SeyrekMatÇarpımı
SparseMatMul( const ::tensorflow::Scope & scope, ::tensorflow::Input a, ::tensorflow::Input b, const SparseMatMul::Attrs & attrs )
düğüm
::tensorflow::Node * node() const
operatör::tensorflow::Giriş
operator::tensorflow::Input() const
operatör::tensorflow::Çıktı
operator::tensorflow::Output() const
Herkese açık statik fonksiyonlar
AIsSparse
Attrs AIsSparse( bool x )
BIsSparse
Attrs BIsSparse( bool x )
TranspozeA
Attrs TransposeA( bool x )
TranspozeB
Attrs TransposeB( bool x )