tensorflow:: عملیات:: ReduceJoin

#include <string_ops.h>

یک تانسور رشته‌ای را در ابعاد داده شده به هم متصل می‌کند.

خلاصه

اتصال رشته‌ای را در ابعاد مختلف در رشته داده شده با تانسور شکل [\\(d_0, d_1, ..., d_{n-1}\\)] محاسبه می‌کند. [\\(d_0, d_1, ..., d_{n-1}\\)] یک تانسور جدید که با [\\(d_0, d_1, ..., d_{n-1}\\)] رشته‌های ورودی با جداکننده داده شده ایجاد می‌شود را برمی‌گرداند (پیش‌فرض: رشته خالی). شاخص‌های منفی از انتها به عقب شمارش می‌شوند، که -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): ابعادی که باید کاهش داده شوند. ابعاد به ترتیب مشخص شده کاهش می‌یابند. حذف reduction_indices معادل ارسال [n-1, n-2, ..., 0] است. شاخص‌های منفی از -n تا -1 پشتیبانی می‌شوند.

ویژگی‌های اختیاری (به Attrs مراجعه کنید):

  • keep_dims: اگر True ، ابعاد کاهش‌یافته با طول 1 حفظ می‌شوند.
  • جداکننده: جداکننده‌ای که هنگام اتصال استفاده می‌شود.

بازده:

  • Output : شکلی برابر با ورودی دارد که ابعاد کاهش‌یافته آن حذف شده یا بسته به keep_dims روی 1 تنظیم شده است.

سازنده‌ها و مخرب‌ها

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:: جذابیت‌ها

تنظیم‌کننده‌های ویژگی اختیاری برای 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::خروجی

 operator::tensorflow::Output() const 

توابع استاتیک عمومی

KeepDims

Attrs KeepDims(
  bool x
)

جداکننده

Attrs Separator(
  StringPiece x
)