# tensorflow::ops::SparseReduceMax::Attrs

`#include <sparse_ops.h>`

Optional attribute setters for [SparseReduceMax](https://www.tensorflow.org/versions/r2.0/api_docs/cc/class/tensorflow/ops/sparse-reduce-max#classtensorflow_1_1ops_1_1_sparse_reduce_max).

## Summary

| ### Public attributes ||
|---|---|
| `https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/sparse-reduce-max/attrs#structtensorflow_1_1ops_1_1_sparse_reduce_max_1_1_attrs_1a1b9292b8b1018ff3978cd05638fb98c5 = false` | `bool` |

| ### Public functions ||
|---|---|
| `https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/sparse-reduce-max/attrs#structtensorflow_1_1ops_1_1_sparse_reduce_max_1_1_attrs_1aed629bc47433937f9ec4d2fccc1414cd(bool x)` | `TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/sparse-reduce-max/attrs#structtensorflow_1_1ops_1_1_sparse_reduce_max_1_1_attrs` If true, retain reduced dimensions with length 1. |

## Public attributes

### keep_dims_

```
bool tensorflow::ops::SparseReduceMax::Attrs::keep_dims_ = false
```

## Public functions

### KeepDims

```
TF_MUST_USE_RESULT Attrs tensorflow::ops::SparseReduceMax::Attrs::KeepDims(
  bool x
)
```
If true, retain reduced dimensions with length 1.

Defaults to false