تينسورفلو :: العمليات :: SparseTensorDenseMatMul
#include <sparse_ops.h>
اضرب SparseTensor (من الرتبة 2) "A" بمصفوفة كثيفة "B".
ملخص
لا يتم إجراء فحص الصلاحية على مؤشرات A. ومع ذلك ، يوصى باستخدام تنسيق الإدخال التالي للسلوك الأمثل:
إذا كان advoint_a == false: يجب ترتيب A بترتيب تصاعدي معجمي. استخدم SparseReorder إذا لم تكن متأكدًا. إذا كان الأمر التالي == صحيحًا: يجب فرز A بالترتيب لزيادة البعد 1 (على سبيل المثال ، ترتيب "العمود الرئيسي" بدلاً من ترتيب "الصف الرئيسي").
الحجج:
- النطاق: كائن النطاق
- أ_المؤشرات: 2-د.
indices
SparseTensor
، الحجم[nnz, 2]
المصفوفة. - a_values: 1-د.
values
SparseTensor
، حجم[nnz]
. - أ_شكل: 1-د.
shape
SparseTensor
، حجم[2]
متجه. - ب: 2-د. مصفوفة كثيفة.
السمات الاختيارية (انظر Attrs
):
- ضرب المصفوفة: استخدم الضرب المجاور لـ A في المصفوفة. إذا كان A معقدًا ، فهذا هو تبديل (Con (A)). وإلا فإنه ينقل (أ).
- المجاور_ب: استخدم الضرب المجاور B في المصفوفة. إذا كان B معقدًا ، فسيتم تبديل هذا (Con (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 :: العمليات :: 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 :: Output
operator::tensorflow::Output() const
وظائف ثابتة عامة
مساعد
Attrs AdjointA( bool x )
المساعد ب
Attrs AdjointB( bool x )
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2020-04-20 (حسب التوقيت العالمي المتفَّق عليه)