# tensorflow::ops::NthElement::Attrs Struct Reference

# tensorflow::
ops::
NthElement::
Attrs

`
#include <nn_ops.h>
`


Optional attribute setters for
[NthElement](https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/nth-element#classtensorflow_1_1ops_1_1_nth_element)
.

## Summary

| ### Public attributes ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/nth-element/attrs#structtensorflow_1_1ops_1_1_nth_element_1_1_attrs_1a52c83bb2ea2b8689dc3c0107711c9c9c = false ` | ` bool ` |

| ### Public functions ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/nth-element/attrs#structtensorflow_1_1ops_1_1_nth_element_1_1_attrs_1a6fa7514afbcda87cda9c6a9b611c788e (bool x) ` | ` TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/nth-element/attrs#structtensorflow_1_1ops_1_1_nth_element_1_1_attrs ` When set to True, find the nth-largest value in the vector and vice versa. |

## Public attributes

### reverse_

```
bool tensorflow::ops::NthElement::Attrs::reverse_ = false
```

## Public functions

### Reverse

```
TF_MUST_USE_RESULT Attrs tensorflow::ops::NthElement::Attrs::Reverse(
  bool x
)
```

When set to True, find the nth-largest value in the vector and vice versa.


Defaults to false