tensorflow :: ops :: SparseMatMul
#include <math_ops.h>
Kalikan matriks "a" dengan matriks "b".
Ringkasan
Input harus berupa matriks dua dimensi dan dimensi bagian dalam "a" harus sesuai dengan dimensi luar "b". Baik "a" dan "b" haruslah Tensor
bukan SparseTensor
. Operasi ini dioptimalkan untuk kasus di mana setidaknya satu dari "a" atau "b" jarang, dalam arti bahwa mereka memiliki proporsi nilai nol yang besar. Titik impas untuk menggunakan ini versus perkalian matriks padat pada satu platform adalah 30% nilai nol dalam matriks renggang.
Komputasi gradien dari operasi ini hanya akan memanfaatkan ketersebaran dalam gradien masukan saat gradien tersebut berasal dari Relu .
Argumen:
- scope: Objek Scope
Pengembalian:
-
Output
: Tensor produk.
Pembuat dan Penghancur | |
---|---|
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) |
Atribut publik | |
---|---|
operation | |
product |
Fungsi publik | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
Fungsi statis publik | |
---|---|
AIsSparse (bool x) | |
BIsSparse (bool x) | |
TransposeA (bool x) | |
TransposeB (bool x) |
Structs | |
---|---|
tensorflow :: ops :: SparseMatMul :: Attrs | Penyetel atribut opsional untuk SparseMatMul . |
Atribut publik
operasi
Operation operation
produk
::tensorflow::Output product
Fungsi publik
SparseMatMul
SparseMatMul( const ::tensorflow::Scope & scope, ::tensorflow::Input a, ::tensorflow::Input b )
SparseMatMul
SparseMatMul( const ::tensorflow::Scope & scope, ::tensorflow::Input a, ::tensorflow::Input b, const SparseMatMul::Attrs & attrs )
simpul
::tensorflow::Node * node() const
operator :: tensorflow :: Input
operator::tensorflow::Input() const
operator :: tensorflow :: Keluaran
operator::tensorflow::Output() const
Fungsi statis publik
AIsSparse
Attrs AIsSparse( bool x )
BIsSparse
Attrs BIsSparse( bool x )
Transpose
Attrs TransposeA( bool x )
TransposeB
Attrs TransposeB( bool x )