تدفق التوتر:: العمليات:: SparseTensorDenseMatMul

#include <sparse_ops.h>

اضرب SparseTensor (من الرتبة 2) "A" في المصفوفة الكثيفة "B".

ملخص

لم يتم إجراء التحقق من صحة مؤشرات A. ومع ذلك، يوصى بتنسيق الإدخال التالي للحصول على السلوك الأمثل:

if adjoint_a == false: يجب فرز A بترتيب معجمي متزايد. استخدم SparseReorder إذا لم تكن متأكدًا. if adjoint_a == true: يجب فرز A من أجل زيادة البعد 1 (أي ترتيب "العمود الرئيسي" بدلاً من ترتيب "الصف الرئيسي").

الحجج:

  • النطاق: كائن النطاق
  • أ_المؤشرات: 2-د. indices SparseTensor ، الحجم [nnz, 2] المصفوفة.
  • أ_القيم: 1-د. values SparseTensor ، الحجم [nnz] Vector.
  • أ_الشكل: 1-د. shape SparseTensor ، الحجم [2] Vector.
  • ب: 2-د. مصفوفة كثيفة.

السمات الاختيارية (انظر Attrs ):

  • adjoint_a: استخدم المجاور لـ A في ضرب المصفوفة. إذا كان A معقدًا، فهذا هو النقل (conj(A)). وإلا فإنه منقول (أ).
  • adjoint_b: استخدم المجاورة لـ B في ضرب المصفوفة. إذا كانت B معقدة، فهذا هو النقل (conj(B)). وإلا فإنه منقول (ب).

عائدات:

  • Output : موتر المنتج.

البنائين والمدمرين

SparseTensorDenseMatMul (const :: tensorflow::Scope & scope, :: tensorflow::Input a_indices, :: tensorflow::Input a_values, :: tensorflow::Input a_shape, :: tensorflow::Input b)
SparseTensorDenseMatMul (const :: tensorflow::Scope & scope, :: tensorflow::Input a_indices, :: tensorflow::Input a_values, :: tensorflow::Input a_shape, :: tensorflow::Input b, const SparseTensorDenseMatMul::Attrs & attrs)

الصفات العامة

operation
product

الوظائف العامة

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

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

AdjointA (bool x)
AdjointB (bool x)

الهياكل

Tensorflow:: ops:: SparseTensorDenseMatMul:: Attrs

محددات السمات الاختيارية لـ SparseTensorDenseMatMul .

الصفات العامة

عملية

Operation operation

منتج

::tensorflow::Output product

الوظائف العامة

SparseTensorDenseMatMul

 SparseTensorDenseMatMul(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input a_indices,
  ::tensorflow::Input a_values,
  ::tensorflow::Input a_shape,
  ::tensorflow::Input b
)

SparseTensorDenseMatMul

 SparseTensorDenseMatMul(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input a_indices,
  ::tensorflow::Input a_values,
  ::tensorflow::Input a_shape,
  ::tensorflow::Input b,
  const SparseTensorDenseMatMul::Attrs & attrs
)

العقدة

::tensorflow::Node * node() const 

المشغل::tensorflow::الإدخال

 operator::tensorflow::Input() const 

المشغل::tensorflow::الإخراج

 operator::tensorflow::Output() const 

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

مجاور أ

Attrs AdjointA(
  bool x
)

المجاور ب

Attrs AdjointB(
  bool x
)