# tensorflow::ops::DepthwiseConv2dNative::Attrs Struct Reference

# tensorflow::
ops::
DepthwiseConv2dNative::
Attrs

`
#include <nn_ops.h>
`


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

## Summary

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

| ### Public functions ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/depthwise-conv2d-native/attrs#structtensorflow_1_1ops_1_1_depthwise_conv2d_native_1_1_attrs_1a447e7c3e583e72979fb2ec601f68db73 (StringPiece x) ` | ` TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/depthwise-conv2d-native/attrs#structtensorflow_1_1ops_1_1_depthwise_conv2d_native_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/attrs#structtensorflow_1_1ops_1_1_depthwise_conv2d_native_1_1_attrs_1aa73e4b11fe5a09060f449fcc49c63ba8 (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/attrs#structtensorflow_1_1ops_1_1_depthwise_conv2d_native_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/attrs#structtensorflow_1_1ops_1_1_depthwise_conv2d_native_1_1_attrs_1a74bc8bd5a5f6750f0aee226d1ba431ad (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/attrs#structtensorflow_1_1ops_1_1_depthwise_conv2d_native_1_1_attrs ` Defaults to \[\]. |

## Public attributes

### data_format_

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

### dilations_

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

### explicit_paddings_

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

## Public functions

### DataFormat

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

Defaults to \[\].