تدفق التوتر:: العمليات:: SparseDenseCwiseMul
#include <sparse_ops.h>
يقوم المكون بضرب SparseTensor بواسطة Tensor كثيف.
ملخص
ستكون مواقع الإخراج المقابلة للعناصر الصفرية ضمنيًا في الموتر المتناثر صفرًا (أي لن تشغل مساحة تخزين)، بغض النظر عن محتويات الموتر الكثيف (حتى لو كان +/-INF وINF*0 == نان).
القيود : تقوم هذه العملية ببث الجانب الكثيف إلى الجانب المتناثر فقط، ولكن ليس الاتجاه الآخر.
الحجج:
- النطاق: كائن النطاق
- sp_indices: 2-D. مصفوفة
N x R
مع مؤشرات القيم غير الفارغة في SparseTensor، وربما ليس بالترتيب المتعارف عليه. - sp_values: 1-د.
N
قيم غير فارغة تتوافق معsp_indices
. - sp_shape: 1-د. شكل الإدخال SparseTensor.
- كثيفة:
R
-D. معامل Tensor الكثيف.
العوائد:
-
Output
: 1-د. قيمN
التي يتم تشغيلها.
البنائين والمدمرين | |
---|---|
SparseDenseCwiseMul (const :: tensorflow::Scope & scope, :: tensorflow::Input sp_indices, :: tensorflow::Input sp_values, :: tensorflow::Input sp_shape, :: tensorflow::Input dense) |
الوظائف العامة | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
الصفات العامة
عملية
Operation operation
الإخراج
::tensorflow::Output output
الوظائف العامة
SparseDenseCwiseMul
SparseDenseCwiseMul(
const ::tensorflow::Scope & scope,
::tensorflow::Input sp_indices,
::tensorflow::Input sp_values,
::tensorflow::Input sp_shape,
::tensorflow::Input dense
)
العقدة
::tensorflow::Node * node() const
المشغل::tensorflow::الإدخال
operator::tensorflow::Input() const
المشغل::tensorflow::الإخراج
operator::tensorflow::Output() const