tensorflow::ops::BatchMatMulV2
#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[..., :, :])
NOT : BatchMatMulV2 toplu işlem boyutlarında yayınlamayı destekler. Yayınlama hakkında daha fazla bilgi burada .
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:
Trueise,xdilimlerinin eşleniklerini hesaplar. Varsayılan değerFalse. - adj_y:
Trueise,ydilimlerine ek değerler ekler. Varsayılan değerFalse.
İadeler:
-
Output:[..., r_o, c_o]şekline sahip 3 boyutlu veya daha yüksek boyutlu
Yapıcılar ve Yıkıcılar | |
|---|---|
BatchMatMulV2 (const :: tensorflow::Scope & scope, :: tensorflow::Input x, :: tensorflow::Input y) | |
BatchMatMulV2 (const :: tensorflow::Scope & scope, :: tensorflow::Input x, :: tensorflow::Input y, const BatchMatMulV2::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::BatchMatMulV2::Attrs | BatchMatMulV2 için isteğe bağlı öznitelik ayarlayıcıları. |
Genel özellikler
operasyon
Operation operation
çıktı
::tensorflow::Output output
Kamusal işlevler
BatchMatMulV2
BatchMatMulV2( const ::tensorflow::Scope & scope, ::tensorflow::Input x, ::tensorflow::Input y )
BatchMatMulV2
BatchMatMulV2( const ::tensorflow::Scope & scope, ::tensorflow::Input x, ::tensorflow::Input y, const BatchMatMulV2::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 )