تينسورفلو :: العمليات :: تصغير
#include <string_ops.h>
ينضم إلى سلسلة Tensor عبر الأبعاد المحددة.
ملخص
[\\(d_0, d_1, ..., d_{n-1}\\)]
السلسلة المرتبطة عبر الأبعاد في السلسلة المحددة Tensor من الشكل [\\(d_0, d_1, ..., d_{n-1}\\)]
. يُرجع Tensor جديدًا تم إنشاؤه من خلال ضم سلاسل الإدخال بالفاصل المحدد (افتراضيًا: سلسلة فارغة). تُحسب المؤشرات السالبة تنازليًا من النهاية ، مع كون -1
مكافئًا لـ n - 1
. إذا لم يتم تحديد الفهارس ، يتم ربط جميع الأبعاد التي تبدأ من n - 1
إلى 0
.
على سبيل المثال:
# tensor `a` is [["a", "b"], ["c", "d"]] tf.reduce_join(a, 0) ==> ["ac", "bd"] tf.reduce_join(a, 1) ==> ["ab", "cd"] tf.reduce_join(a, -2) = tf.reduce_join(a, 0) ==> ["ac", "bd"] tf.reduce_join(a, -1) = tf.reduce_join(a, 1) ==> ["ab", "cd"] tf.reduce_join(a, 0, keep_dims=True) ==> [["ac", "bd"]] tf.reduce_join(a, 1, keep_dims=True) ==> [["ab"], ["cd"]] tf.reduce_join(a, 0, separator=".") ==> ["a.c", "b.d"] tf.reduce_join(a, [0, 1]) ==> "acbd" tf.reduce_join(a, [1, 0]) ==> "abcd" tf.reduce_join(a, []) ==> [["a", "b"], ["c", "d"]] tf.reduce_join(a) = tf.reduce_join(a, [1, 0]) ==> "abcd"
الحجج:
- النطاق: كائن النطاق
- المدخلات: المدخلات المطلوب ضمها. يجب ألا يكون حجم جميع المؤشرات المخففة صفريًا.
- تخفيض_مؤشرات: أبعاد لتقليل أكثر. يتم تقليل الأبعاد بالترتيب المحدد. يعادل حذف مؤشرات
reduction_indices
النجاح[n-1, n-2, ..., 0]
. يتم دعم المؤشرات السلبية من-n
إلى-1
.
السمات الاختيارية (انظر Attrs
):
- keep_dims: إذا كان هذا
True
، فاحتفظ بأبعاد مخفضة بطول1
. - الفاصل: الفاصل المراد استخدامه عند الانضمام.
عائدات:
-
Output
: له شكل مساوٍ لشكل المدخلات مع إزالة أبعاد مخفضة أو ضبطها على1
اعتمادًا علىkeep_dims
.
البنائين والمدمرين | |
---|---|
ReduceJoin (const :: tensorflow::Scope & scope, :: tensorflow::Input inputs, :: tensorflow::Input reduction_indices) | |
ReduceJoin (const :: tensorflow::Scope & scope, :: tensorflow::Input inputs, :: tensorflow::Input reduction_indices, const ReduceJoin::Attrs & attrs) |
السمات العامة | |
---|---|
operation | |
output |
الوظائف العامة | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
وظائف ثابتة عامة | |
---|---|
KeepDims (bool x) | |
Separator (StringPiece x) |
الهياكل | |
---|---|
tensorflow :: العمليات :: ReduceJoin :: Attrs | محددات السمات الاختيارية لـ ReduceJoin . |
السمات العامة
عملية
Operation operation
انتاج
::tensorflow::Output output
الوظائف العامة
تصغير
ReduceJoin( const ::tensorflow::Scope & scope, ::tensorflow::Input inputs, ::tensorflow::Input reduction_indices )
تصغير
ReduceJoin( const ::tensorflow::Scope & scope, ::tensorflow::Input inputs, ::tensorflow::Input reduction_indices, const ReduceJoin::Attrs & attrs )
العقدة
::tensorflow::Node * node() const
المشغل :: tensorflow :: الإدخال
operator::tensorflow::Input() const
المشغل :: Tensorflow :: Output
operator::tensorflow::Output() const
وظائف ثابتة عامة
KeepDims
Attrs KeepDims( bool x )
فاصل
Attrs Separator( StringPiece x )
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2020-04-20 (حسب التوقيت العالمي المتفَّق عليه)