تينسورفلو :: العمليات :: كومة
#include <array_ops.h>
حزم قائمة من موتر الرتبة N
R
في موتر رتبة واحدة (R+1)
.
ملخص
يحزم موترات N
في values
في موتر بترتيب أعلى من كل موتر في values
، عن طريق تعبئتها على طول بعد axis
. إعطاء قائمة من الموترات للشكل (A, B, C)
؛
إذا كان axis == 0
فسيكون لموتّر output
الشكل (N, A, B, C)
. إذا كان axis == 1
فسيكون لموتّر output
الشكل (A, N, B, C)
. إلخ.
على سبيل المثال:
# 'x' is [1, 4] # 'y' is [2, 5] # 'z' is [3, 6] pack([x, y, z]) => [[1, 4], [2, 5], [3, 6]] # Pack along first dim. pack([x, y, z], axis=1) => [[1, 2, 3], [4, 5, 6]]
هذا هو عكس unpack
.
الحجج:
- النطاق: كائن النطاق
- القيم: يجب أن تكون من نفس النوع والشكل.
السمات الاختيارية (انظر Attrs
):
- المحور: البعد المطلوب تعبئته على طوله. تلتف القيم السالبة ، لذا فإن النطاق الصالح هو
[-(R+1), R+1)
.
عائدات:
-
Output
: الموتر المعبأ.
البنائين والمدمرين | |
---|---|
Stack (const :: tensorflow::Scope & scope, :: tensorflow::InputList values) | |
Stack (const :: tensorflow::Scope & scope, :: tensorflow::InputList values, const Stack::Attrs & attrs) |
السمات العامة | |
---|---|
operation | |
output |
الوظائف العامة | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
وظائف ثابتة عامة | |
---|---|
Axis (int64 x) |
الهياكل | |
---|---|
tensorflow :: ops :: Stack :: Attrs | اضعي السمة الاختيارية ل المكدس . |
السمات العامة
عملية
Operation operation
انتاج
::tensorflow::Output output
الوظائف العامة
كومة
Stack( const ::tensorflow::Scope & scope, ::tensorflow::InputList values )
كومة
Stack( const ::tensorflow::Scope & scope, ::tensorflow::InputList values, const Stack::Attrs & attrs )
العقدة
::tensorflow::Node * node() const
المشغل :: tensorflow :: الإدخال
operator::tensorflow::Input() const
المشغل :: Tensorflow :: Output
operator::tensorflow::Output() const
وظائف ثابتة عامة
محور
Attrs Axis( int64 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.