tensorflow:: אופס:: MatMul
#include <math_ops.h>
הכפל את המטריצה "a" במטריצה "b".
תַקצִיר
התשומות חייבות להיות מטריצות דו-ממדיות והממד הפנימי של "a" (לאחר שהועבר אם transpose_a נכון) חייב להתאים לממד החיצוני של "b" (לאחר ההעברה אם transposed_b נכון).
הערה : יישום ליבת ברירת המחדל עבור MatMul ב-GPU משתמש ב-cublas.
טיעונים:
- scope: אובייקט Scope
מאפיינים אופציונליים (ראה Attrs
):
- transpose_a: אם נכון, "a" עובר טרנספוזיציה לפני הכפל.
- transpose_b: אם נכון, "b" מועבר לפני הכפל.
החזרות:
-
Output
: טנזור המוצר.
בנאים והורסים | |
---|---|
MatMul (const :: tensorflow::Scope & scope, :: tensorflow::Input a, :: tensorflow::Input b) | |
MatMul (const :: tensorflow::Scope & scope, :: tensorflow::Input a, :: tensorflow::Input b, const MatMul::Attrs & attrs) |
תפקידים ציבוריים | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
פונקציות סטטיות ציבוריות | |
---|---|
TransposeA (bool x) | |
TransposeB (bool x) |
מבנים | |
---|---|
tensorflow:: ops:: MatMul:: Attrs | קובעי תכונות אופציונליים עבור MatMul . |
תכונות ציבוריות
מִבצָע
Operation operation
מוּצָר
::tensorflow::Output product
תפקידים ציבוריים
MatMul
MatMul(
const ::tensorflow::Scope & scope,
::tensorflow::Input a,
::tensorflow::Input b
)
MatMul
MatMul(
const ::tensorflow::Scope & scope,
::tensorflow::Input a,
::tensorflow::Input b,
const MatMul::Attrs & attrs
)