tensorflow :: ops :: Podkładka
#include <array_ops.h>
Uzupełnia tensor zerami.
streszczenie
Ta operacja uzupełnia dane input
zerami zgodnie z paddings
. paddings
to tensor całkowity o kształcie [Dn, 2]
, gdzie n to rząd danych input
. Dla każdego wymiaru D danych input
paddings[D, 0]
wskazują, ile zer należy dodać przed zawartością danych input
w tym wymiarze, a paddings[D, 1]
wskazują, ile zer należy dodać po zawartości danych input
w tym wymiarze.
Wypełniony rozmiar każdego wymiaru D wyjścia to:
paddings(D, 0) + input.dim_size(D) + paddings(D, 1)
Na przykład:
# '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]]
Argumenty:
- zakres: obiekt Scope
Zwroty:
-
Output
: tensor wyjściowy.
Konstruktorzy i niszczyciele | |
---|---|
Pad (const :: tensorflow::Scope & scope, :: tensorflow::Input input, :: tensorflow::Input paddings) |
Atrybuty publiczne | |
---|---|
operation | |
output |
Funkcje publiczne | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
Atrybuty publiczne
operacja
Operation operation
wynik
::tensorflow::Output output
Funkcje publiczne
Podkładka
Pad( const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input paddings )
węzeł
::tensorflow::Node * node() const
operator :: tensorflow :: Input
operator::tensorflow::Input() const
operator :: tensorflow :: Output
operator::tensorflow::Output() const