تدفق التوتر:: العمليات:: 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)

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

operation
output

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

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