tensorflow:: ops:: MatMul

#include <math_ops.h>

הכפל את המטריצה ​​"a" במטריצה ​​"b".

תַקצִיר

הקלט חייב להיות מטריצות דו-ממדיות והממד הפנימי של "a" (לאחר טרנספוזציה אם transpose_a הוא true) חייב להתאים לממד החיצוני של "b" (לאחר טרנספוזציה אם transposed_b הוא true).

הערה : מימוש הגרעין המוגדר כברירת מחדל עבור MatMul על גבי מעבדים גרפיים משתמש ב-cublas.

טיעונים:

מאפיינים אופציונליים (ראה 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)

מאפיינים ציבוריים

operation
product

תפקידים ציבוריים

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(
  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
)

צוֹמֶת

::tensorflow::Node * node() const 

אופרטור::tensorflow::קלט

 operator::tensorflow::Input() const 

אופרטור::tensorflow::פלט

 operator::tensorflow::Output() const 

פונקציות סטטיות ציבוריות

טרנספוז א'

Attrs TransposeA(
  bool x
)

טרנספוז ב'

Attrs TransposeB(
  bool x
)