# tensorflow::ops::Greater Class Reference

# tensorflow::
ops::
Greater

`
#include <math_ops.h>
`


Returns the truth value of (x \> y) element-wise.

## Summary


* NOTE *
:
`
https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/ops/greater#classtensorflow_1_1ops_1_1_greater
`
supports broadcasting. More about broadcasting
[here](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html)


Example:


```
x = tf.constant([5, 4, 6])
y = tf.constant([5, 2, 5])
tf.math.greater(x, y) ==> [False, True, True]
```

<br />


```
x = tf.constant([5, 4, 6])
y = tf.constant([5])
tf.math.greater(x, y) ==> [False, False, True]
```

<br />


Args:

- scope: A [Scope](https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object

<br />


Returns:

- `
  https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output
  ` : The z tensor.

<br />

| ### Constructors and Destructors ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/ops/greater#classtensorflow_1_1ops_1_1_greater_1a2aae49704bca4942f8179b056f3ded68 (const :: https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope & scope, :: https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input x, :: https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input y) ` ||

| ### Public attributes ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/ops/greater#classtensorflow_1_1ops_1_1_greater_1a0c363bd5728eda88313f358906f92f38 ` | ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation ` |
| ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/ops/greater#classtensorflow_1_1ops_1_1_greater_1af25048cba36e4b6413b3e1d065c31722 ` | ` :: https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output ` |

| ### Public functions ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/ops/greater#classtensorflow_1_1ops_1_1_greater_1ad3f5b206140ec3379eaf5756edb7f8b1 () const ` | ` ::tensorflow::Node * ` |
| ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/ops/greater#classtensorflow_1_1ops_1_1_greater_1a8926842ea4a0a858f7a2d0387467e378 () const ` | ` ` |
| ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/ops/greater#classtensorflow_1_1ops_1_1_greater_1a7244665b7c2d5054ca8f148d2261606f () const ` | ` ` |

## Public attributes

### operation

```
Operation operation
```

### z

```
::tensorflow::Output z
```

## Public functions

### Greater

```
 Greater(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input x,
  ::tensorflow::Input y
)
```

### node

```
::tensorflow::Node * node() const 
```

### operator::tensorflow::Input

```
 operator::tensorflow::Input() const 
```

### operator::tensorflow::Output

```
 operator::tensorflow::Output() const 
```