przepływ tensorowy:: ops:: Podkładka

#include <array_ops.h>

Wypełnia tensor zerami.

Streszczenie

Ta operacja uzupełnia dane 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 danych input paddings[D, 0] wskazuje, ile zer należy dodać przed zawartością input w tym wymiarze, a paddings[D, 1] wskazuje, ile zer należy dodać po zawartości danych input w tym wymiarze.

Wyściełany rozmiar każdego wymiaru D wyniku wynosi:

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:

Zwroty:

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

operacja

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