tensorflow::ops::BatchMatMul
#include <math_ops.h>Moltiplica le sezioni di due tensori in batch.
Riepilogo
Moltiplica tutte le sezioni del Tensor x e y (ogni sezione può essere vista come un elemento di un batch) e organizza i singoli risultati in un unico tensore di output della stessa dimensione del batch. Ciascuna delle singole sezioni può essere facoltativamente aggiunta (aggiungere una matrice significa trasporla e coniugarla) prima della moltiplicazione impostando il flag adj_x o adj_y su True , che di default è False .
I tensori di input x e y sono bidimensionali o di ordine superiore con forma [..., r_x, c_x] e [..., r_y, c_y] .
Il tensore di output è bidimensionale o superiore con forma [..., r_o, c_o] , dove:
r_o = c_x if adj_x else r_x c_o = r_y if adj_y else c_y
Si calcola come segue:
output[..., :, :] = matrix(x[..., :, :]) * matrix(y[..., :, :])
Argomentazioni:
- ambito: un oggetto Scope
- x: 2D o superiore con forma
[..., r_x, c_x]. - y: 2-D o superiore con forma
[..., r_y, c_y].
Attributi opzionali (vedere Attrs ):
- adj_x: Se
True, aggiunge le fette dix. Il valore predefinito èFalse. - adj_y: Se
True, aggiunge le sezioni diy. Il valore predefinito èFalse.
Resi:
-
Output: 3D o superiore con forma[..., r_o, c_o]
Costruttori e distruttori | |
|---|---|
BatchMatMul (const :: tensorflow::Scope & scope, :: tensorflow::Input x, :: tensorflow::Input y) | |
BatchMatMul (const :: tensorflow::Scope & scope, :: tensorflow::Input x, :: tensorflow::Input y, const BatchMatMul::Attrs & attrs) |
attributi pubblici | |
|---|---|
operation | |
output | |
Funzioni pubbliche | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
Funzioni statiche pubbliche | |
|---|---|
AdjX (bool x) | |
AdjY (bool x) | |
Strutture | |
|---|---|
| tensorflow::ops::BatchMatMul::Attrs | Impostatori di attributi opzionali per BatchMatMul . |
attributi pubblici
operazione
Operation operation
produzione
::tensorflow::Output output
Funzioni pubbliche
BatchMatMul
BatchMatMul( const ::tensorflow::Scope & scope, ::tensorflow::Input x, ::tensorflow::Input y )
BatchMatMul
BatchMatMul( const ::tensorflow::Scope & scope, ::tensorflow::Input x, ::tensorflow::Input y, const BatchMatMul::Attrs & attrs )
nodo
::tensorflow::Node * node() const
operatore::tensorflow::Input
operator::tensorflow::Input() const
operatore::tensoreflusso::output
operator::tensorflow::Output() const
Funzioni statiche pubbliche
Agg.
Attrs AdjX( bool x )
Agg.
Attrs AdjY( bool x )