تدفق التوتر:: العمليات:: SparseDenseCwiseAdd
#include <sparse_ops.h>
يضيف SparseTensor و Tensor الكثيف باستخدام هذه القواعد الخاصة:
ملخص
(1) يبث الجانب الكثيف ليكون له نفس شكل الجانب المتناثر، إذا كان مؤهلاً؛ (2) بعد ذلك، فقط القيم الكثيفة التي تشير إليها مؤشرات SparseTensor هي التي تشارك في عملية الإضافة cwise.
بموجب هذه القواعد، تكون النتيجة SparseTensor منطقية بنفس المؤشرات والشكل تمامًا، ولكن ربما بقيم مختلفة غير الصفر. إخراج هذا Op هو القيم غير الصفرية الناتجة.
الحجج:
- النطاق: كائن النطاق
- sp_indices: 2-D. مصفوفة
N x R
مع مؤشرات القيم غير الفارغة في SparseTensor، وربما ليس بالترتيب المتعارف عليه. - sp_values: 1-د.
N
قيم غير فارغة تتوافق معsp_indices
. - sp_shape: 1-د. شكل الإدخال SparseTensor.
- كثيفة:
R
-D. معامل Tensor الكثيف.
العوائد:
-
Output
: 1-د. قيمN
التي يتم تشغيلها.
البنائين والمدمرين | |
---|---|
SparseDenseCwiseAdd (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
الوظائف العامة
SparseDenseCwiseAdd
SparseDenseCwiseAdd( 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