تينسورفلو :: العمليات :: PadV2
#include <array_ops.h>
وسادات موتر.
ملخص
يتم input
وسادات العملية هذه وفقًا paddings
constant_values
التي تحددها. paddings
هو موتر عدد صحيح مع الشكل [Dn, 2]
، حيث n هي رتبة input
. لكل بُعد D input
، تشير paddings[D, 0]
إلى عدد قيم الحشو التي يجب إضافتها قبل محتويات input
في هذا البعد ، وتشير paddings[D, 1]
إلى عدد قيم الحشو المراد إضافتها بعد محتويات input
في ذلك البعد. القيم constant_values
هي موتر عددي من نفس نوع input
الذي يشير إلى القيمة التي يجب استخدامها input
الحشو.
الحجم المبطن لكل بُعد D للإخراج هو:
paddings(D, 0) + input.dim_size(D) + paddings(D, 1)
على سبيل المثال:
# 't' is [[1, 1], [2, 2]] # 'paddings' is [[1, 1], [2, 2]] # 'constant_values' is 0 # rank of 't' is 2 pad(t, paddings) ==> [[0, 0, 0, 0, 0, 0] [0, 0, 1, 1, 0, 0] [0, 0, 2, 2, 0, 0] [0, 0, 0, 0, 0, 0]]
الحجج:
- النطاق: كائن النطاق
عائدات:
-
Output
: موتر الإخراج.
البنائين والمدمرين | |
---|---|
PadV2 (const :: tensorflow::Scope & scope, :: tensorflow::Input input, :: tensorflow::Input paddings, :: tensorflow::Input constant_values) |
السمات العامة | |
---|---|
operation | |
output |
الوظائف العامة | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
السمات العامة
عملية
Operation operation
انتاج
::tensorflow::Output output
الوظائف العامة
PadV2
PadV2( const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input paddings, ::tensorflow::Input constant_values )
العقدة
::tensorflow::Node * node() const
المشغل :: tensorflow :: الإدخال
operator::tensorflow::Input() const
المشغل :: Tensorflow :: Output
operator::tensorflow::Output() const
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.