تينسورفلو :: العمليات :: ماتمول

#include <math_ops.h>

اضرب المصفوفة "أ" بالمصفوفة "ب".

ملخص

يجب أن تكون المدخلات عبارة عن مصفوفات ثنائية الأبعاد ويجب أن يتطابق البعد الداخلي لـ "a" (بعد تغيير موضعه إذا كان transpose_a صحيحًا) مع البعد الخارجي لـ "b" (بعد نقله إذا كان التحويل_ب صحيحًا).

ملاحظة : يستخدم تطبيق kernel الافتراضي لـ 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 :: العمليات :: 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 :: Output

 operator::tensorflow::Output() const 

وظائف ثابتة عامة

تبديل

Attrs TransposeA(
  bool x
)

تبديل

Attrs TransposeB(
  bool x
)