تينسورفلو :: العمليات :: 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 )
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-04-20 UTC.