przepływ tensorowy:: ops:: PadV2

#include <array_ops.h>

Podkłady tensora.

Streszczenie

Ta operacja uzupełnia input zgodnie z określonymi paddings i constant_values . 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 wartości dopełnienia należy dodać przed zawartością input w tym wymiarze, a paddings[D, 1] wskazuje, ile wartości dopełnienia należy dodać po zawartości input w tym wymiarze wymiar. constant_values ​​to tensor skalarny tego samego typu co input , który wskazuje wartość, która ma zostać użyta do wypełnienia input .

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]]
# '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]]

Argumenty:

Zwroty:

Konstruktory i destruktory

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

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

PadV2

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

węzeł

::tensorflow::Node * node() const 

operator::tensorflow::Wejście

 operator::tensorflow::Input() const 

operator::tensorflow::Wyjście

 operator::tensorflow::Output() const