# tensorflow::ops::Conv3D::Attrs Struct Reference

# tensorflow::
ops::
Conv3D::
Attrs

`
#include <nn_ops.h>
`


Optional attribute setters for
[Conv3D](https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/conv3-d#classtensorflow_1_1ops_1_1_conv3_d)
.

## Summary

| ### Public attributes ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/conv3-d/attrs#structtensorflow_1_1ops_1_1_conv3_d_1_1_attrs_1aed2017811fa48a9095b4329677adea1d = "NDHWC" ` | ` StringPiece ` |
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/conv3-d/attrs#structtensorflow_1_1ops_1_1_conv3_d_1_1_attrs_1a41ef9508f16643fccb3cb6b78b120a54 = Default_dilations() ` | ` gtl::ArraySlice< int > ` |

| ### Public functions ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/conv3-d/attrs#structtensorflow_1_1ops_1_1_conv3_d_1_1_attrs_1a8c135a3b483a824e4ae79d3574ae0037 (StringPiece x) ` | ` TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/conv3-d/attrs#structtensorflow_1_1ops_1_1_conv3_d_1_1_attrs ` The data format of the input and output data. |
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/conv3-d/attrs#structtensorflow_1_1ops_1_1_conv3_d_1_1_attrs_1a86d275095e5694eccb3ed56c1e366e1f (const gtl::ArraySlice< int > & x) ` | ` TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/conv3-d/attrs#structtensorflow_1_1ops_1_1_conv3_d_1_1_attrs ` 1-D tensor of length 5. |

## Public attributes

### data_format_

```
StringPiece tensorflow::ops::Conv3D::Attrs::data_format_ = "NDHWC"
```

### dilations_

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

## Public functions

### DataFormat

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

The data format of the input and output data.


With the default format "NDHWC", the data is stored in the order of: \[batch, in_depth, in_height, in_width, in_channels\]. Alternatively, the format could be "NCDHW", the data storage order is: \[batch, in_channels, in_depth, in_height, in_width\].


Defaults to "NDHWC"

### Dilations

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

1-D tensor of length 5.


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, 1\]