تدفق التوتر:: العمليات:: 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::الإخراج

 operator::tensorflow::Output() const