tensorflow::ops::BatchMatMul

#include <math_ops.h>

İki tensörün dilimlerini gruplar halinde çarpar.

Özet

Tensor x ve y tüm dilimlerini (her dilim bir grup elemanı olarak düşünülebilir) çarpar ve ayrı ayrı sonuçları aynı grup boyutunda tek bir çıktı tensöründe düzenler. İsteğe bağlı olarak, her bir dilim, çarpmadan önce adj_x veya adj_y bayrağını True olarak ayarlayarak (varsayılan olarak False ) eşlenik hale getirilebilir (bir matrisi eşlenik hale getirmek, onu devrik hale getirmek ve eşlenik hale getirmek anlamına gelir).

Giriş tensörleri x ve y [..., r_x, c_x] ve [..., r_y, c_y] şekillerine sahip 2 boyutlu veya daha yüksek boyutlu tensörlerdir.

Çıkış tensörü, [..., r_o, c_o] şeklinde 2 boyutlu veya daha yüksek boyutludur; burada:

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

Hesaplama şu şekilde yapılır:

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

Argümanlar:

  • kapsam: Bir Kapsam nesnesi
  • x: [..., r_x, c_x] şekline sahip 2 boyutlu veya daha yüksek boyutlu.
  • y: [..., r_y, c_y] şekline sahip 2 boyutlu veya daha yüksek boyutlu.

İsteğe bağlı özellikler (bkz. Attrs ):

  • adj_x: True ise, x dilimlerinin eşleniklerini hesaplar. Varsayılan değer False .
  • adj_y: True ise, y dilimlerine ek değerler ekler. Varsayılan değer False .

İadeler:

  • Output : [..., r_o, c_o] şekline sahip 3 boyutlu veya daha yüksek boyutlu

Yapıcılar ve Yıkıcılar

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)

Genel özellikler

operation
output

Kamusal işlevler

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

Herkese açık statik fonksiyonlar

AdjX (bool x)
AdjY (bool x)

Yapılar

tensorflow::ops::BatchMatMul::Attrs

BatchMatMul için isteğe bağlı öznitelik ayarlayıcıları.

Genel özellikler

operasyon

Operation operation

çıktı

::tensorflow::Output output

Kamusal işlevler

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
)

düğüm

::tensorflow::Node * node() const 

operatör::tensorflow::Giriş

 operator::tensorflow::Input() const 

operatör::tensorflow::Çıktı

 operator::tensorflow::Output() const 

Herkese açık statik fonksiyonlar

AdjX

Attrs AdjX(
  bool x
)

Ayarlanmış

Attrs AdjY(
  bool x
)