tensorflow :: ops :: BatchMatMul

#include <math_ops.h>

Mengalikan irisan dari dua tensor dalam beberapa kelompok.

Ringkasan

Mengalikan semua irisan Tensor x dan y (setiap irisan dapat dilihat sebagai elemen kelompok), dan mengatur hasil individu dalam satu keluaran tensor dengan ukuran kelompok yang sama. Masing-masing dari irisan individu opsional dapat adjointed (untuk adjoint matriks sarana untuk merefleksikan dan konjugasi itu) sebelum perkalian dengan menetapkan adj_x atau adj_y bendera untuk True , yang secara default False .

Tensor input x dan y adalah 2-D atau lebih tinggi dengan bentuk [..., r_x, c_x] dan [..., r_y, c_y] .

Tensor keluaran adalah 2-D atau lebih tinggi dengan bentuk [..., r_o, c_o] , di mana:

r_o = c_x if adj_x else r_x
c_o = r_y if adj_y else c_y

Ini dihitung sebagai:

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

Argumen:

  • scope: Objek Scope
  • x: 2-D atau lebih tinggi dengan bentuk [..., r_x, c_x] .
  • y: 2-D atau lebih tinggi dengan bentuk [..., r_y, c_y] .

Atribut opsional (lihat Attrs ):

  • adj_x: Jika True , atur potongan x . Default-nya adalah False .
  • adj_y: Jika True , atur irisan dari y . Default-nya adalah False .

Pengembalian:

  • Output : 3-D atau lebih tinggi dengan bentuk [..., r_o, c_o]

Pembuat dan Penghancur

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)

Atribut publik

operation
output

Fungsi publik

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

Fungsi statis publik

AdjX (bool x)
AdjY (bool x)

Structs

tensorflow :: ops :: BatchMatMul :: Attrs

Penyetel atribut opsional untuk BatchMatMul .

Atribut publik

operasi

Operation operation

keluaran

::tensorflow::Output output

Fungsi publik

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
)

simpul

::tensorflow::Node * node() const 

operator :: tensorflow :: Input

 operator::tensorflow::Input() const 

operator :: tensorflow :: Keluaran

 operator::tensorflow::Output() const 

Fungsi statis publik

AdjX

Attrs AdjX(
  bool x
)

AdjY

Attrs AdjY(
  bool x
)