tensoreflusso:: ops:: SparseMatMul
#include <math_ops.h>Moltiplicare la matrice "a" per la matrice "b".
Riepilogo
 Gli input devono essere matrici bidimensionali e la dimensione interna di "a" deve corrispondere alla dimensione esterna di "b". Sia "a" che "b" devono essere Tensor s e non SparseTensor s. Questa operazione è ottimizzata per il caso in cui almeno uno tra "a" e "b" è sparso, nel senso che hanno una grande proporzione di valori zero. Il pareggio per l'utilizzo di questo rispetto a una matrice densa moltiplicata su una piattaforma era pari al 30% di valori zero nella matrice sparsa.
Il calcolo del gradiente di questa operazione trarrà vantaggio dalla scarsità nel gradiente di input solo quando tale gradiente proviene da un Relu .
Argomenti:
- scope: un oggetto Scope
 
Resi:
-  
Output: il tensore del prodotto. 
Costruttori e distruttori | |
|---|---|
 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) | 
Attributi pubblici | |
|---|---|
 operation | |
 product | |
Funzioni pubbliche | |
|---|---|
 node () const | ::tensorflow::Node * | 
 operator::tensorflow::Input () const | |
 operator::tensorflow::Output () const |  |
Funzioni pubbliche statiche | |
|---|---|
 AIsSparse (bool x) | |
 BIsSparse (bool x) | |
 TransposeA (bool x) | |
 TransposeB (bool x) | |
Strutture | |
|---|---|
| tensorflow:: ops:: SparseMatMul:: Attrs | Setter di attributi facoltativi per SparseMatMul .  | 
Attributi pubblici
operazione
Operation operation
prodotto
::tensorflow::Output product
Funzioni pubbliche
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 )
nodo
::tensorflow::Node * node() const
operatore::tensorflow::Input
operator::tensorflow::Input() const
operatore::tensorflow::Output
operator::tensorflow::Output() const
Funzioni pubbliche statiche
AISparse
Attrs AIsSparse( bool x )
BIsSparse
Attrs BIsSparse( bool x )
TrasporreA
Attrs TransposeA( bool x )
TrasporreB
Attrs TransposeB( bool x )