# tensorflow::ops::MaxPoolGradGradV2::Attrs Struct Reference

# tensorflow::ops::MaxPoolGradGradV2::Attrs

`#include <nn_ops.h>`

Optional attribute setters for [MaxPoolGradGradV2](https://www.tensorflow.org/versions/r2.3/api_docs/cc/class/tensorflow/ops/max-pool-grad-grad-v2#classtensorflow_1_1ops_1_1_max_pool_grad_grad_v2).

## Summary

| ### Public attributes ||
|---|---|
| `https://www.tensorflow.org/versions/r2.3/api_docs/cc/struct/tensorflow/ops/max-pool-grad-grad-v2/attrs#structtensorflow_1_1ops_1_1_max_pool_grad_grad_v2_1_1_attrs_1ac7759e6f4fb0ada3020b68d84dbca473 = "NHWC"` | `StringPiece` |

| ### Public functions ||
|---|---|
| `https://www.tensorflow.org/versions/r2.3/api_docs/cc/struct/tensorflow/ops/max-pool-grad-grad-v2/attrs#structtensorflow_1_1ops_1_1_max_pool_grad_grad_v2_1_1_attrs_1a3aaf93ad55a7bef6d47fd97e65ff0d05(StringPiece x)` | `TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.3/api_docs/cc/struct/tensorflow/ops/max-pool-grad-grad-v2/attrs#structtensorflow_1_1ops_1_1_max_pool_grad_grad_v2_1_1_attrs` Specify the data format of the input and output data. |

## Public attributes

### data_format_

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

## Public functions

### DataFormat

```
TF_MUST_USE_RESULT Attrs tensorflow::ops::MaxPoolGradGradV2::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"