![]() |
The transpose of conv1d
.
Aliases:
tf.nn.conv1d_transpose(
input,
filters,
output_shape,
strides,
padding='SAME',
data_format='NWC',
dilations=None,
name=None
)
This operation is sometimes called "deconvolution" after Deconvolutional
Networks,
but is really the transpose (gradient) of conv1d
rather than an actual
deconvolution.
Args:
input
: A 3-DTensor
of typefloat
and shape[batch, in_width, in_channels]
forNWC
data format or[batch, in_channels, in_width]
forNCW
data format.filters
: A 3-DTensor
with the same type asvalue
and shape[filter_width, output_channels, in_channels]
.filter
'sin_channels
dimension must match that ofvalue
.output_shape
: A 1-DTensor
, containing three elements, representing the output shape of the deconvolution op.strides
: An int or list ofints
that has length1
or3
. The number of entries by which the filter is moved right at each step.padding
: A string, either'VALID'
or'SAME'
. The padding algorithm. See the "returns" section oftf.nn.convolution
for details.data_format
: A string.'NWC'
and'NCW'
are supported.dilations
: An int or list ofints
that has length1
or3
which defaults to 1. The dilation factor for each dimension of input. If set to k > 1, there will be k-1 skipped cells between each filter element on that dimension. Dilations in the batch and depth dimensions must be 1.name
: Optional name for the returned tensor.
Returns:
A Tensor
with the same type as value
.
Raises:
ValueError
: If input/output depth does not matchfilter
's shape, ifoutput_shape
is not at 3-element vector, ifpadding
is other than'VALID'
or'SAME'
, or ifdata_format
is invalid.