tensorflow:: ops:: 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 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const