تينسورفلو :: العمليات :: AddSparseToTensorsMap
#include <sparse_ops.h>
إضافة SparseTensor
إلى SparseTensorsMap
بإرجاع مقبضها.
ملخص
يتم تمثيل SparseTensor
بثلاث sparse_indices
: sparse_indices
، sparse_values
، وشكل sparse_shape
.
يأخذ هذا المشغل SparseTensor
المحدد SparseTensor
إلى كائن حاوية ( SparseTensorsMap
). يتم إنشاء مفتاح فريد داخل هذه الحاوية في شكل int64
، وهذه هي القيمة التي يتم إرجاعها.
و SparseTensor
يمكن بعد ذلك تلا كجزء من minibatch عن طريق تمرير مفتاح كعنصر متجه إلى TakeManySparseFromTensorsMap
. لضمان الوصول إلى SparseTensorsMap
الصحيحة ، تأكد من تمرير نفس container
shared_name
إلى ذلك المرجع. إذا لم يكن هناك shared_name
يتم توفير هنا، بدلا من استخدام اسم عملية خلق بالدعوة AddSparseToTensorsMap
كما shared_name
تمريرها إلى TakeManySparseFromTensorsMap
. تأكد من أن العمليات في موقع مشترك.
الحجج:
- النطاق: كائن النطاق
- المؤشرات المتفرقة: 2-D.
indices
SparseTensor
. - sparse_values: 1-د.
values
SparseTensor
. - متفرق_شكل: 1-د.
shape
SparseTensor
.
السمات الاختيارية (انظر Attrs
):
- الحاوية: اسم الحاوية
SparseTensorsMap
التي تم إنشاؤها بواسطة هذا المرجع. - Shared_name: الاسم المشترك
SparseTensorsMap
التي تم إنشاؤها بواسطة هذا المرجع. إذا كان فارغًا ، فسيتم استخدام الاسم الفريد للعملية الجديدة.
عائدات:
-
Output
: 0-D. يتم الآن تخزين مقبضSparseTensor
فيSparseTensorsMap
.
البنائين والمدمرين | |
---|---|
AddSparseToTensorsMap (const :: tensorflow::Scope & scope, :: tensorflow::Input sparse_indices, :: tensorflow::Input sparse_values, :: tensorflow::Input sparse_shape) | |
AddSparseToTensorsMap (const :: tensorflow::Scope & scope, :: tensorflow::Input sparse_indices, :: tensorflow::Input sparse_values, :: tensorflow::Input sparse_shape, const AddSparseToTensorsMap::Attrs & attrs) |
السمات العامة | |
---|---|
operation | |
sparse_handle |
الوظائف العامة | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
وظائف ثابتة عامة | |
---|---|
Container (StringPiece x) | |
SharedName (StringPiece x) |
الهياكل | |
---|---|
tensorflow :: العمليات :: AddSparseToTensorsMap :: Attrs | محددات السمات الاختيارية لـ AddSparseToTensorsMap . |
السمات العامة
عملية
Operation operation
متناثر
::tensorflow::Output sparse_handle
الوظائف العامة
AddSparseToTensorsMap
AddSparseToTensorsMap( const ::tensorflow::Scope & scope, ::tensorflow::Input sparse_indices, ::tensorflow::Input sparse_values, ::tensorflow::Input sparse_shape )
AddSparseToTensorsMap
AddSparseToTensorsMap( const ::tensorflow::Scope & scope, ::tensorflow::Input sparse_indices, ::tensorflow::Input sparse_values, ::tensorflow::Input sparse_shape, const AddSparseToTensorsMap::Attrs & attrs )
العقدة
::tensorflow::Node * node() const
المشغل :: tensorflow :: الإدخال
operator::tensorflow::Input() const
المشغل :: Tensorflow :: Output
operator::tensorflow::Output() const
وظائف ثابتة عامة
وعاء
Attrs Container( StringPiece x )
SharedName
Attrs SharedName( StringPiece 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.