# tensorflow::ops::Conv2DBackpropInput::Attrs Struct Reference

# tensorflow::
ops::
Conv2DBackpropInput::
Attrs

`
#include <nn_ops.h>
`


Optional attribute setters for
[Conv2DBackpropInput](https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/conv2-d-backprop-input#classtensorflow_1_1ops_1_1_conv2_d_backprop_input)
.

## Summary

| ### Public attributes ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/conv2-d-backprop-input/attrs#structtensorflow_1_1ops_1_1_conv2_d_backprop_input_1_1_attrs_1a0c1c7f7d2cbf215df9dc979b0fc2f1b2 = "NHWC" ` | ` StringPiece ` |
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/conv2-d-backprop-input/attrs#structtensorflow_1_1ops_1_1_conv2_d_backprop_input_1_1_attrs_1ae1d90c85a264053bf6ace3e7c8998ee3 = Default_dilations() ` | ` gtl::ArraySlice< int > ` |
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/conv2-d-backprop-input/attrs#structtensorflow_1_1ops_1_1_conv2_d_backprop_input_1_1_attrs_1a56d59dc45e96f03d6289660936e4f78a = {} ` | ` gtl::ArraySlice< int > ` |
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/conv2-d-backprop-input/attrs#structtensorflow_1_1ops_1_1_conv2_d_backprop_input_1_1_attrs_1aeda7580c5db6f5c41aa8c2e447e5cc66 = true ` | ` bool ` |

| ### Public functions ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/conv2-d-backprop-input/attrs#structtensorflow_1_1ops_1_1_conv2_d_backprop_input_1_1_attrs_1a6c39cb6a5daf9fab2fe4861667e94c8c (StringPiece x) ` | ` TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/conv2-d-backprop-input/attrs#structtensorflow_1_1ops_1_1_conv2_d_backprop_input_1_1_attrs ` Specify the data format of the input and output data. |
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/conv2-d-backprop-input/attrs#structtensorflow_1_1ops_1_1_conv2_d_backprop_input_1_1_attrs_1a46e0bc68887b3aa0ab727f45de1e2a1b (const gtl::ArraySlice< int > & x) ` | ` TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/conv2-d-backprop-input/attrs#structtensorflow_1_1ops_1_1_conv2_d_backprop_input_1_1_attrs ` 1-D tensor of length 4. |
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/conv2-d-backprop-input/attrs#structtensorflow_1_1ops_1_1_conv2_d_backprop_input_1_1_attrs_1a4b187401b5a1bd9344fb0e8a9b7a2363 (const gtl::ArraySlice< int > & x) ` | ` TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/conv2-d-backprop-input/attrs#structtensorflow_1_1ops_1_1_conv2_d_backprop_input_1_1_attrs ` If ` padding ` is ` "EXPLICIT" ` , the list of explicit padding amounts. |
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/conv2-d-backprop-input/attrs#structtensorflow_1_1ops_1_1_conv2_d_backprop_input_1_1_attrs_1a7aff147907d16ee4db66d8e6a6782cf0 (bool x) ` | ` TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/conv2-d-backprop-input/attrs#structtensorflow_1_1ops_1_1_conv2_d_backprop_input_1_1_attrs ` Defaults to true. |

## Public attributes

### data_format_

```
StringPiece tensorflow::ops::Conv2DBackpropInput::Attrs::data_format_ = "NHWC"
```

### dilations_

```
gtl::ArraySlice< int > tensorflow::ops::Conv2DBackpropInput::Attrs::dilations_ = Default_dilations()
```

### explicit_paddings_

```
gtl::ArraySlice< int > tensorflow::ops::Conv2DBackpropInput::Attrs::explicit_paddings_ = {}
```

### use_cudnn_on_gpu_

```
bool tensorflow::ops::Conv2DBackpropInput::Attrs::use_cudnn_on_gpu_ = true
```

## Public functions

### DataFormat

```
TF_MUST_USE_RESULT Attrs tensorflow::ops::Conv2DBackpropInput::Attrs::DataFormat(
  StringPiece x
)
```

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\].


Defaults to "NHWC"

### Dilations

```
TF_MUST_USE_RESULT Attrs tensorflow::ops::Conv2DBackpropInput::Attrs::Dilations(
  const gtl::ArraySlice< int > & x
)
```

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.


Defaults to \[1, 1, 1, 1\]

### ExplicitPaddings

```
TF_MUST_USE_RESULT Attrs tensorflow::ops::Conv2DBackpropInput::Attrs::ExplicitPaddings(
  const gtl::ArraySlice< int > & x
)
```

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.


Defaults to \[\]

### UseCudnnOnGpu

```
TF_MUST_USE_RESULT Attrs tensorflow::ops::Conv2DBackpropInput::Attrs::UseCudnnOnGpu(
  bool x
)
```

Defaults to true.