tensorflow::ops::Pad

#include <array_ops.h>

Bir tensörü sıfırlarla doldurur.

Özet

Bu işlem, belirttiğiniz paddings göre input sıfırlarla doldurur. paddings , input rankı n olmak üzere, [Dn, 2] şeklinde bir tamsayı tensörüdür. input her boyutu D için, paddings[D, 0] , o boyuttaki input içeriğinin önüne kaç sıfır ekleneceğini, paddings[D, 1] ise o boyuttaki input içeriğinin sonuna kaç sıfır ekleneceğini gösterir.

Çıktının her bir D boyutunun dolgulu boyutu şöyledir:

paddings(D, 0) + input.dim_size(D) + paddings(D, 1)

Örneğin:

# 't' is [[1, 1], [2, 2]]
# 'paddings' is [[1, 1], [2, 2]]
# 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]]

Argümanlar:

İadeler:

  • Output : Çıktı tensörü.

Yapıcılar ve Yıkıcılar

Pad (const :: tensorflow::Scope & scope, :: tensorflow::Input input, :: tensorflow::Input paddings)

Genel özellikler

operation
output

Kamusal işlevler

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

Genel özellikler

operasyon

Operation operation

çıktı

::tensorflow::Output output

Kamusal işlevler

Ped

 Pad(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  ::tensorflow::Input paddings
)

düğüm

::tensorflow::Node * node() const 

operatör::tensorflow::Giriş

 operator::tensorflow::Input() const 

operatör::tensorflow::Çıktı

 operator::tensorflow::Output() const