tensoreflusso:: ops:: BatchMatMul

#include <math_ops.h>

Moltiplica le fette di due tensori in batch.

Riepilogo

Moltiplica tutte le sezioni del Tensor x (ogni sezione può essere visualizzata come y elemento di un batch) e dispone i singoli risultati in un singolo tensore di output della stessa dimensione del batch. Ciascuna delle singole fette può facoltativamente essere unita (aggiungere una matrice significa trasponerla e coniugarla) prima della moltiplicazione impostando il flag adj_x o adj_y su True , che sono per impostazione predefinita False .

I tensori y input x sono 2-D o superiori con forma [..., r_x, c_x] e [..., r_y, c_y] .

Il tensore di output è 2-D 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

Viene calcolato come:

output[..., :, :] = matrix(x[..., :, :]) * matrix(y[..., :, :])

Argomenti:

  • scope: un oggetto Scope
  • x: 2-D o superiore con forma [..., r_x, c_x] .
  • y: 2-D o superiore con forma [..., r_y, c_y] .

Attributi facoltativi (vedi Attrs ):

  • adj_x: Se True , aggiunge le fette di x . Il valore predefinito è False .
  • adj_y: Se True , aggiunge le fette di y . Il valore predefinito è False .

Ritorna:

  • Output : 3-D 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 pubbliche statiche

AdjX (bool x)
AdjY (bool x)

Strutture

tensorflow:: ops:: BatchMatMul:: Attrs

Setter di attributi facoltativi 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::tensorflow::Output

 operator::tensorflow::Output() const 

Funzioni pubbliche statiche

AdjX

Attrs AdjX(
  bool x
)

AdjY

Attrs AdjY(
  bool x
)