# tensorflow::ops::Conv2DBackpropInputV2

`#include <nn_ops.h>`

Computes the gradients of convolution with respect to the input.

## Summary

Args:

- scope: A [Scope](https://www.tensorflow.org/versions/r2.13/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object
- input: 4-D with shape `[batch, in_height, in_width, in_channels]`. Only shape of tensor is used.
- filter: 4-D with shape `[filter_height, filter_width, in_channels, out_channels]`.
- out_backprop: 4-D with shape `[batch, out_height, out_width, out_channels]`. Gradients w.r.t. the output of the convolution.
- strides: The stride of the sliding window for each dimension of the input of the convolution. Must be in the same order as the dimension specified with format.
- padding: The type of padding algorithm to use.

<br />

Optional attributes (see `https://www.tensorflow.org/versions/r2.13/api_docs/cc/struct/tensorflow/ops/conv2-d-backprop-input-v2/attrs#structtensorflow_1_1ops_1_1_conv2_d_backprop_input_v2_1_1_attrs`):

- explicit_paddings: If `padding` is `"EXPLICIT"`, the list of explicit padding amounts. For the ith dimension, the amount of padding inserted before and after the dimension is `explicit_paddings[2 * i]` and `explicit_paddings[2 * i + 1]`, respectively. If `padding` is not `"EXPLICIT"`, `explicit_paddings` must be empty.
- data_format: Specify the data format of the input and output data. With the default format "NHWC", the data is stored in the order of: \[batch, in_height, in_width, in_channels\]. Alternatively, the format could be "NCHW", the data storage order of: \[batch, in_channels, in_height, in_width\].
- dilations: 1-D tensor of length 4. 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. The dimension order is determined by the value of `data_format`, see above for details. Dilations in the batch and depth dimensions must be 1.

<br />

Returns:

- `https://www.tensorflow.org/versions/r2.13/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output`: 4-D with shape `[batch, in_height, in_width, in_channels]`. Gradient w.r.t. the input of the convolution.

<br />

| ### Constructors and Destructors ||
|---|---|
| `https://www.tensorflow.org/versions/r2.13/api_docs/cc/class/tensorflow/ops/conv2-d-backprop-input-v2#classtensorflow_1_1ops_1_1_conv2_d_backprop_input_v2_1a7bace044045ebce4879b501ad04907e7(const ::https://www.tensorflow.org/versions/r2.13/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope & scope, ::https://www.tensorflow.org/versions/r2.13/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input input, ::https://www.tensorflow.org/versions/r2.13/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input filter, ::https://www.tensorflow.org/versions/r2.13/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input out_backprop, const gtl::ArraySlice< int > & strides, StringPiece padding)` ||
| `https://www.tensorflow.org/versions/r2.13/api_docs/cc/class/tensorflow/ops/conv2-d-backprop-input-v2#classtensorflow_1_1ops_1_1_conv2_d_backprop_input_v2_1ab71fcee5df76bf8d4827790eef4a0abe(const ::https://www.tensorflow.org/versions/r2.13/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope & scope, ::https://www.tensorflow.org/versions/r2.13/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input input, ::https://www.tensorflow.org/versions/r2.13/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input filter, ::https://www.tensorflow.org/versions/r2.13/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input out_backprop, const gtl::ArraySlice< int > & strides, StringPiece padding, const https://www.tensorflow.org/versions/r2.13/api_docs/cc/struct/tensorflow/ops/conv2-d-backprop-input-v2/attrs#structtensorflow_1_1ops_1_1_conv2_d_backprop_input_v2_1_1_attrs & attrs)` ||

| ### Public attributes ||
|---|---|
| `https://www.tensorflow.org/versions/r2.13/api_docs/cc/class/tensorflow/ops/conv2-d-backprop-input-v2#classtensorflow_1_1ops_1_1_conv2_d_backprop_input_v2_1a7520f614f8f64f74366298b75ea64b81` | `https://www.tensorflow.org/versions/r2.13/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation` |
| `https://www.tensorflow.org/versions/r2.13/api_docs/cc/class/tensorflow/ops/conv2-d-backprop-input-v2#classtensorflow_1_1ops_1_1_conv2_d_backprop_input_v2_1afe458062d295f1e06e0428d6b6497509` | `::https://www.tensorflow.org/versions/r2.13/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output` |

| ### Public functions ||
|---|---|
| `https://www.tensorflow.org/versions/r2.13/api_docs/cc/class/tensorflow/ops/conv2-d-backprop-input-v2#classtensorflow_1_1ops_1_1_conv2_d_backprop_input_v2_1af7cc64543ba4e5f5589372041795eefd() const ` | `::tensorflow::Node *` |
| `https://www.tensorflow.org/versions/r2.13/api_docs/cc/class/tensorflow/ops/conv2-d-backprop-input-v2#classtensorflow_1_1ops_1_1_conv2_d_backprop_input_v2_1a6b292149b930da84c947b1341e3e9a21() const ` |   |
| `https://www.tensorflow.org/versions/r2.13/api_docs/cc/class/tensorflow/ops/conv2-d-backprop-input-v2#classtensorflow_1_1ops_1_1_conv2_d_backprop_input_v2_1aeca7bcdb9c66e73fe91d74c74001b76f() const ` |   |

| ### Public static functions ||
|---|---|
| `https://www.tensorflow.org/versions/r2.13/api_docs/cc/class/tensorflow/ops/conv2-d-backprop-input-v2#classtensorflow_1_1ops_1_1_conv2_d_backprop_input_v2_1aacb4d9b6af29eb8d2d25254101214760(StringPiece x)` | `https://www.tensorflow.org/versions/r2.13/api_docs/cc/struct/tensorflow/ops/conv2-d-backprop-input-v2/attrs#structtensorflow_1_1ops_1_1_conv2_d_backprop_input_v2_1_1_attrs` |
| `https://www.tensorflow.org/versions/r2.13/api_docs/cc/class/tensorflow/ops/conv2-d-backprop-input-v2#classtensorflow_1_1ops_1_1_conv2_d_backprop_input_v2_1a09ea2713b984427062c383fba03048bb(const gtl::ArraySlice< int > & x)` | `https://www.tensorflow.org/versions/r2.13/api_docs/cc/struct/tensorflow/ops/conv2-d-backprop-input-v2/attrs#structtensorflow_1_1ops_1_1_conv2_d_backprop_input_v2_1_1_attrs` |
| `https://www.tensorflow.org/versions/r2.13/api_docs/cc/class/tensorflow/ops/conv2-d-backprop-input-v2#classtensorflow_1_1ops_1_1_conv2_d_backprop_input_v2_1a16635cc9f2868330acff6e4618e0f6a9(const gtl::ArraySlice< int > & x)` | `https://www.tensorflow.org/versions/r2.13/api_docs/cc/struct/tensorflow/ops/conv2-d-backprop-input-v2/attrs#structtensorflow_1_1ops_1_1_conv2_d_backprop_input_v2_1_1_attrs` |
| `https://www.tensorflow.org/versions/r2.13/api_docs/cc/class/tensorflow/ops/conv2-d-backprop-input-v2#classtensorflow_1_1ops_1_1_conv2_d_backprop_input_v2_1ab4668a249b61bcfa57a64143e34daf05(bool x)` | `https://www.tensorflow.org/versions/r2.13/api_docs/cc/struct/tensorflow/ops/conv2-d-backprop-input-v2/attrs#structtensorflow_1_1ops_1_1_conv2_d_backprop_input_v2_1_1_attrs` |

| ### Structs ||
|---|---|
| [tensorflow::ops::Conv2DBackpropInputV2::Attrs](https://www.tensorflow.org/versions/r2.13/api_docs/cc/struct/tensorflow/ops/conv2-d-backprop-input-v2/attrs) | Optional attribute setters for [Conv2DBackpropInputV2](https://www.tensorflow.org/versions/r2.13/api_docs/cc/class/tensorflow/ops/conv2-d-backprop-input-v2#classtensorflow_1_1ops_1_1_conv2_d_backprop_input_v2). |

## Public attributes

### operation

```
Operation operation
```

### output

```
::tensorflow::Output output
```

## Public functions

### Conv2DBackpropInputV2

```
 Conv2DBackpropInputV2(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  ::tensorflow::Input filter,
  ::tensorflow::Input out_backprop,
  const gtl::ArraySlice< int > & strides,
  StringPiece padding
)
```

### Conv2DBackpropInputV2

```
 Conv2DBackpropInputV2(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  ::tensorflow::Input filter,
  ::tensorflow::Input out_backprop,
  const gtl::ArraySlice< int > & strides,
  StringPiece padding,
  const Conv2DBackpropInputV2::Attrs & attrs
)
```

### node

```
::tensorflow::Node * node() const 
```

### operator::tensorflow::Input

```
 operator::tensorflow::Input() const 
```

### operator::tensorflow::Output

```
 operator::tensorflow::Output() const 
```

## Public static functions

### DataFormat

```
Attrs DataFormat(
  StringPiece x
)
```

### Dilations

```
Attrs Dilations(
  const gtl::ArraySlice< int > & x
)
```

### ExplicitPaddings

```
Attrs ExplicitPaddings(
  const gtl::ArraySlice< int > & x
)
```

### UseCudnnOnGpu

```
Attrs UseCudnnOnGpu(
  bool x
)
```