przepływ tensorowy:: ops:: Podkładka
#include <array_ops.h>Wypełnia tensor zerami.
Streszczenie
 Ta operacja uzupełnia input zerami zgodnie z określonymi paddings . paddings to tensor liczb całkowitych o kształcie [Dn, 2] , gdzie n jest stopniem input . Dla każdego wymiaru D input paddings[D, 0] wskazuje, ile zer należy dodać przed zawartością danych input w tym wymiarze, a paddings[D, 1] wskazuje, ile zer należy dodać po zawartości input w tym wymiarze.
Wyściełany rozmiar każdego wymiaru D wyniku 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.
| Konstruktory i destruktory | |
|---|---|
| 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
działanie
Operation operation
wyjście
::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::Wejście
operator::tensorflow::Input() const
operator::tensorflow::Wyjście
operator::tensorflow::Output() const