نشكرك على متابعة Google I / O. عرض جميع الجلسات عند الطلب مشاهدة عند الطلب

تينسورفلو :: العمليات :: مسلسلات

#include <sparse_ops.h>

تسلسل N -minibatch SparseTensor إلى [N, 3] Tensor الكائن.

ملخص

يجب أن يكون لـ SparseTensor رتبة R أكبر من 1 ، ويتم التعامل مع البعد الأول على أنه بُعد minibatch. يجب فرز عناصر SparseTensor بترتيب تصاعدي لهذا البعد الأول. SparseTensor كائنات SparseTensor المتسلسلة التي تدخل كل صف من SparseTensor serialized_sparse على رتبة R-1 .

يتم استخراج حجم minibatch N من sparse_shape[0] .

الحجج:

  • النطاق: كائن النطاق
  • المؤشرات المتفرقة: 2-D. indices minibatch SparseTensor .
  • sparse_values: 1-د. values minibatch SparseTensor .
  • متفرق_شكل: 1-د. shape minibatch SparseTensor .

السمات الاختيارية (انظر Attrs ):

  • out_type: نوع dtype المراد استخدامه للتسلسل ؛ الأنواع المدعومة هي string (افتراضي) variant .

عائدات:

  • Output : موتر متسلسل.

البنائين والمدمرين

SerializeManySparse (const :: tensorflow::Scope & scope, :: tensorflow::Input sparse_indices, :: tensorflow::Input sparse_values, :: tensorflow::Input sparse_shape)
SerializeManySparse (const :: tensorflow::Scope & scope, :: tensorflow::Input sparse_indices, :: tensorflow::Input sparse_values, :: tensorflow::Input sparse_shape, const SerializeManySparse::Attrs & attrs)

السمات العامة

operation
serialized_sparse

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

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

وظائف ثابتة عامة

OutType (DataType x)

الهياكل

tensorflow :: ops :: SerializeManySparse :: Attrs

محددات السمات الاختيارية لـ SerializeManySparse .

السمات العامة

عملية

Operation operation

متسلسلة

::tensorflow::Output serialized_sparse

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

مسلسلات

 SerializeManySparse(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input sparse_indices,
  ::tensorflow::Input sparse_values,
  ::tensorflow::Input sparse_shape
)

مسلسلات

 SerializeManySparse(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input sparse_indices,
  ::tensorflow::Input sparse_values,
  ::tensorflow::Input sparse_shape,
  const SerializeManySparse::Attrs & attrs
)

العقدة

::tensorflow::Node * node() const 

المشغل :: tensorflow :: الإدخال

 operator::tensorflow::Input() const 

المشغل :: Tensorflow :: Output

 operator::tensorflow::Output() const 

وظائف ثابتة عامة

OutType

Attrs OutType(
  DataType x
)