# tensorflow::ops::FusedBatchNormGradV2::Attrs Struct Reference

# tensorflow::
ops::
FusedBatchNormGradV2::
Attrs

`
#include <nn_ops.h>
`


Optional attribute setters for
[FusedBatchNormGradV2](https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/fused-batch-norm-grad-v2#classtensorflow_1_1ops_1_1_fused_batch_norm_grad_v2)
.

## Summary

| ### Public attributes ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/fused-batch-norm-grad-v2/attrs#structtensorflow_1_1ops_1_1_fused_batch_norm_grad_v2_1_1_attrs_1a5c7e5651428b698cd994fc8a81d33908 = "NHWC" ` | ` StringPiece ` |
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/fused-batch-norm-grad-v2/attrs#structtensorflow_1_1ops_1_1_fused_batch_norm_grad_v2_1_1_attrs_1a3ec2c53bad089cfc23146de77cbc3666 = 0.0001f ` | ` float ` |
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/fused-batch-norm-grad-v2/attrs#structtensorflow_1_1ops_1_1_fused_batch_norm_grad_v2_1_1_attrs_1afb0be5403a6c70a701ec4192098aa58e = true ` | ` bool ` |

| ### Public functions ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/fused-batch-norm-grad-v2/attrs#structtensorflow_1_1ops_1_1_fused_batch_norm_grad_v2_1_1_attrs_1a91225bbb0dc8413eafb12acd0e862616 (StringPiece x) ` | ` TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/fused-batch-norm-grad-v2/attrs#structtensorflow_1_1ops_1_1_fused_batch_norm_grad_v2_1_1_attrs ` The data format for y_backprop, x, x_backprop. |
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/fused-batch-norm-grad-v2/attrs#structtensorflow_1_1ops_1_1_fused_batch_norm_grad_v2_1_1_attrs_1a9afb73d357cab1d8204b4f0ade6e5362 (float x) ` | ` TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/fused-batch-norm-grad-v2/attrs#structtensorflow_1_1ops_1_1_fused_batch_norm_grad_v2_1_1_attrs ` A small float number added to the variance of x. |
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/fused-batch-norm-grad-v2/attrs#structtensorflow_1_1ops_1_1_fused_batch_norm_grad_v2_1_1_attrs_1aae977c700d666da2b88a0777b191145a (bool x) ` | ` TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/fused-batch-norm-grad-v2/attrs#structtensorflow_1_1ops_1_1_fused_batch_norm_grad_v2_1_1_attrs ` A bool value to indicate the operation is for training (default) or inference. |

## Public attributes

### data_format_

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

### epsilon_

```
float tensorflow::ops::FusedBatchNormGradV2::Attrs::epsilon_ = 0.0001f
```

### is_training_

```
bool tensorflow::ops::FusedBatchNormGradV2::Attrs::is_training_ = true
```

## Public functions

### DataFormat

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

The data format for y_backprop, x, x_backprop.


Either "NHWC" (default) or "NCHW".


Defaults to "NHWC"

### Epsilon

```
TF_MUST_USE_RESULT Attrs tensorflow::ops::FusedBatchNormGradV2::Attrs::Epsilon(
  float x
)
```

A small float number added to the variance of x.


Defaults to 0.0001

### IsTraining

```
TF_MUST_USE_RESULT Attrs tensorflow::ops::FusedBatchNormGradV2::Attrs::IsTraining(
  bool x
)
```

A bool value to indicate the operation is for training (default) or inference.


Defaults to true