# tensorflow::ops::DepthwiseConv2dNativeBackpropInput::Attrs Struct Reference

# tensorflow::
ops::
DepthwiseConv2dNativeBackpropInput::
Attrs

`
#include <nn_ops.h>
`


Optional attribute setters for
[DepthwiseConv2dNativeBackpropInput](https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/depthwise-conv2d-native-backprop-input#classtensorflow_1_1ops_1_1_depthwise_conv2d_native_backprop_input)
.

## Summary

| ### Public attributes ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/depthwise-conv2d-native-backprop-input/attrs#structtensorflow_1_1ops_1_1_depthwise_conv2d_native_backprop_input_1_1_attrs_1a26f5fbb513bf1e765c25e6c4f1a04cc7 = "NHWC" ` | ` StringPiece ` |
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/depthwise-conv2d-native-backprop-input/attrs#structtensorflow_1_1ops_1_1_depthwise_conv2d_native_backprop_input_1_1_attrs_1acb24883dc03d2d9afad50540635d020d = Default_dilations() ` | ` gtl::ArraySlice< int > ` |
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/depthwise-conv2d-native-backprop-input/attrs#structtensorflow_1_1ops_1_1_depthwise_conv2d_native_backprop_input_1_1_attrs_1ace4fc3544cf9c2a87e36da0c75b958f7 = {} ` | ` gtl::ArraySlice< int > ` |

| ### Public functions ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/depthwise-conv2d-native-backprop-input/attrs#structtensorflow_1_1ops_1_1_depthwise_conv2d_native_backprop_input_1_1_attrs_1a9ea5e2ace7b86cb61ba6276927a29be4 (StringPiece x) ` | ` TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/depthwise-conv2d-native-backprop-input/attrs#structtensorflow_1_1ops_1_1_depthwise_conv2d_native_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/depthwise-conv2d-native-backprop-input/attrs#structtensorflow_1_1ops_1_1_depthwise_conv2d_native_backprop_input_1_1_attrs_1acdab720d55c0c8d0d22f2031e83b6bc1 (const gtl::ArraySlice< int > & x) ` | ` TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/depthwise-conv2d-native-backprop-input/attrs#structtensorflow_1_1ops_1_1_depthwise_conv2d_native_backprop_input_1_1_attrs ` 1-D tensor of length 4. |
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/depthwise-conv2d-native-backprop-input/attrs#structtensorflow_1_1ops_1_1_depthwise_conv2d_native_backprop_input_1_1_attrs_1a643d3bee1772d2fb03abc54ceecd5063 (const gtl::ArraySlice< int > & x) ` | ` TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/depthwise-conv2d-native-backprop-input/attrs#structtensorflow_1_1ops_1_1_depthwise_conv2d_native_backprop_input_1_1_attrs ` Defaults to \[\]. |

## Public attributes

### data_format_

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

### dilations_

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

### explicit_paddings_

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

## Public functions

### DataFormat

```
TF_MUST_USE_RESULT Attrs tensorflow::ops::DepthwiseConv2dNativeBackpropInput::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, height, width, channels\]. Alternatively, the format could be "NCHW", the data storage order of: \[batch, channels, height, width\].


Defaults to "NHWC"

### Dilations

```
TF_MUST_USE_RESULT Attrs tensorflow::ops::DepthwiseConv2dNativeBackpropInput::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::DepthwiseConv2dNativeBackpropInput::Attrs::ExplicitPaddings(
  const gtl::ArraySlice< int > & x
)
```

Defaults to \[\].