tf.nn.conv2d_transpose
    
    
      
    
    
      
      Stay organized with collections
    
    
      
      Save and categorize content based on your preferences.
    
  
  
      
    
  
  
  
  
  
    
  
  
    
    
The transpose of conv2d.
tf.nn.conv2d_transpose(
    input,
    filters,
    output_shape,
    strides,
    padding='SAME',
    data_format='NHWC',
    dilations=None,
    name=None
)
This operation is sometimes called "deconvolution" after
(Zeiler et al., 2010), but is really the transpose (gradient) of
atrous_conv2d rather than an actual deconvolution.
| Args | 
|---|
| input | A 4-D Tensorof typefloatand shape[batch, height, width,
in_channels]forNHWCdata format or[batch, in_channels, height,
width]forNCHWdata format. | 
| filters | A 4-D Tensorwith the same type asinputand shape[height,
width, output_channels, in_channels].filter'sin_channelsdimension
must match that ofinput. | 
| output_shape | A 1-D Tensorrepresenting the output shape of the
deconvolution op. | 
| strides | An int or list of intsthat has length1,2or4.  The
stride of the sliding window for each dimension ofinput. If a single
value is given it is replicated in theHandWdimension. By default
theNandCdimensions are set to 0. The dimension order is determined
by the value ofdata_format, see below for details. | 
| padding | Either the string"SAME"or"VALID"indicating the type of
padding algorithm to use, or a list indicating the explicit paddings at
the start and end of each dimension. See
here
for more information.  When explicit padding is used and data_format is"NHWC", this should be in the form[[0, 0], [pad_top, pad_bottom],
[pad_left, pad_right], [0, 0]]. When explicit padding used and
data_format is"NCHW", this should be in the form[[0, 0], [0, 0],
[pad_top, pad_bottom], [pad_left, pad_right]]. | 
| data_format | A string. 'NHWC' and 'NCHW' are supported. | 
| dilations | An int or list of intsthat has length1,2or4,
defaults to 1. The dilation factor for each dimension ofinput. If a
single value is given it is replicated in theHandWdimension. By
default theNandCdimensions are set to 1. If set to k > 1, there
will be k-1 skipped cells between each filter element on that dimension.
The dimension order is determined by the value ofdata_format, see above
for details. Dilations in the batch and depth dimensions if a 4-d tensor
must be 1. | 
| name | Optional name for the returned tensor. | 
| Returns | 
|---|
| A Tensorwith the same type asinput. | 
| Raises | 
|---|
| ValueError | If input/output depth does not match filter's shape, or if
padding is other than'VALID'or'SAME'. | 
  
  
 
  
    
    
      
       
    
    
  
  
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
  Last updated 2023-03-17 UTC.
  
  
  
    
      [null,null,["Last updated 2023-03-17 UTC."],[],[]]