tf.nn.conv2d_transpose(
value,
filter,
output_shape,
strides,
padding='SAME',
data_format='NHWC',
name=None
)
Defined in tensorflow/python/ops/nn_ops.py.
The transpose of conv2d.
This operation is sometimes called "deconvolution" after Deconvolutional
Networks, but is
actually the transpose (gradient) of conv2d rather than an actual
deconvolution.
Args:
value: A 4-DTensorof typefloatand shape[batch, height, width, in_channels]forNHWCdata format or[batch, in_channels, height, width]forNCHWdata format.filter: A 4-DTensorwith the same type asvalueand shape[height, width, output_channels, in_channels].filter'sin_channelsdimension must match that ofvalue.output_shape: A 1-DTensorrepresenting the output shape of the deconvolution op.strides: A list of ints. The stride of the sliding window for each dimension of the input tensor.padding: A string, either'VALID'or'SAME'. The padding algorithm. See the "returns" section oftf.nn.convolutionfor details.data_format: A string. 'NHWC' and 'NCHW' are supported.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, or if padding is other than'VALID'or'SAME'.