tf.nn.conv3d_transpose
bookmark_borderbookmark
Stay organized with collections
Save and categorize content based on your preferences.
The transpose of conv3d
.
tf.nn.conv3d_transpose(
input,
filters,
output_shape,
strides,
padding='SAME',
data_format='NDHWC',
dilations=None,
name=None
)
This operation is sometimes called "deconvolution" after
(Zeiler et al., 2010), but is really the transpose (gradient) of conv3d
rather than an actual deconvolution.
Args |
input
|
A 5-D Tensor of type float and shape [batch, depth, height,
width, in_channels] for NDHWC data format or [batch, in_channels,
depth, height, width] for NCDHW data format.
|
filters
|
A 5-D Tensor with the same type as input and shape [depth,
height, width, output_channels, in_channels] . filter 's in_channels
dimension must match that of input .
|
output_shape
|
A 1-D Tensor representing the output shape of the
deconvolution op.
|
strides
|
An int or list of ints that has length 1 , 3 or 5 . The
stride of the sliding window for each dimension of input . If a single
value is given it is replicated in the D , H and W dimension. By
default the N and C dimensions are set to 0. The dimension order is
determined by the value of data_format , see below for details.
|
padding
|
A string, either 'VALID' or 'SAME' . The padding algorithm. See
here
for more information.
|
data_format
|
A string. 'NDHWC' and 'NCDHW' are supported.
|
dilations
|
An int or list of ints that has length 1 , 3 or 5 ,
defaults to 1. The dilation factor for each dimension ofinput . If a
single value is given it is replicated in the D , H and W dimension.
By default the N and C dimensions 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 of data_format , see above
for details. Dilations in the batch and depth dimensions if a 5-d tensor
must be 1.
|
name
|
Optional name for the returned tensor.
|
Returns |
A Tensor with the same type as input .
|
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 2022-11-04 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2022-11-04 UTC."],[],[],null,["# tf.nn.conv3d_transpose\n\n\u003cbr /\u003e\n\n|---------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.7.4/tensorflow/python/ops/nn_ops.py#L3314-L3385) |\n\nThe transpose of `conv3d`. \n\n tf.nn.conv3d_transpose(\n input,\n filters,\n output_shape,\n strides,\n padding='SAME',\n data_format='NDHWC',\n dilations=None,\n name=None\n )\n\nThis operation is sometimes called \"deconvolution\" after\n(Zeiler et al., 2010), but is really the transpose (gradient) of `conv3d`\nrather than an actual deconvolution.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|----------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `input` | A 5-D `Tensor` of type `float` and shape `[batch, depth, height, width, in_channels]` for `NDHWC` data format or `[batch, in_channels, depth, height, width]` for `NCDHW` data format. |\n| `filters` | A 5-D `Tensor` with the same type as `input` and shape `[depth, height, width, output_channels, in_channels]`. `filter`'s `in_channels` dimension must match that of `input`. |\n| `output_shape` | A 1-D `Tensor` representing the output shape of the deconvolution op. |\n| `strides` | An int or list of `ints` that has length `1`, `3` or `5`. The stride of the sliding window for each dimension of `input`. If a single value is given it is replicated in the `D`, `H` and `W` dimension. By default the `N` and `C` dimensions are set to 0. The dimension order is determined by the value of `data_format`, see below for details. |\n| `padding` | A string, either `'VALID'` or `'SAME'`. The padding algorithm. See [here](https://www.tensorflow.org/api_docs/python/tf/nn#notes_on_padding_2) for more information. |\n| `data_format` | A string. 'NDHWC' and 'NCDHW' are supported. |\n| `dilations` | An int or list of `ints` that has length `1`, `3` or `5`, defaults to 1. The dilation factor for each dimension of`input`. If a single value is given it is replicated in the `D`, `H` and `W` dimension. By default the `N` and `C` dimensions are set to 1. If set to k \\\u003e 1, there will be k-1 skipped cells between each filter element on that dimension. The dimension order is determined by the value of `data_format`, see above for details. Dilations in the batch and depth dimensions if a 5-d tensor must be 1. |\n| `name` | Optional name for the returned tensor. |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|---|---|\n| A `Tensor` with the same type as `input`. ||\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| References ---------- ||\n|---|---|\n| Deconvolutional Networks: [Zeiler et al., 2010](https://ieeexplore.ieee.org/abstract/document/5539957) ([pdf](http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.232.4023&rep=rep1&type=pdf)) ||\n\n\u003cbr /\u003e"]]