টেনসরফ্লো :: অপস:: মাতমুল

#include <math_ops.h>

ম্যাট্রিক্স "a" কে ম্যাট্রিক্স "b" দ্বারা গুণ করুন

সারসংক্ষেপ

ইনপুটগুলি অবশ্যই দ্বি-মাত্রিক ম্যাট্রিক্স হতে হবে এবং "a" এর অভ্যন্তরীণ মাত্রা (ট্রান্সপোজ_এ সত্য হলে ট্রান্সপোজ হওয়ার পরে) অবশ্যই "b" এর বাইরের মাত্রার সাথে মিলতে হবে (ট্রান্সপোজড_বি সত্য হলে ট্রান্সপোজ হওয়ার পরে)।

দ্রষ্টব্য : GPU-তে MatMul- এর জন্য ডিফল্ট কার্নেল বাস্তবায়ন কিউব্লাস ব্যবহার করে।

যুক্তি:

ঐচ্ছিক বৈশিষ্ট্য (দেখুন 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 

অপারেটর::টেনসরফ্লো::ইনপুট

 operator::tensorflow::Input() const 

অপারেটর::টেনসরফ্লো::আউটপুট

 operator::tensorflow::Output() const 

পাবলিক স্ট্যাটিক ফাংশন

ট্রান্সপোজএ

Attrs TransposeA(
  bool x
)

ট্রান্সপোজ বি

Attrs TransposeB(
  bool x
)