---
title: Greater
description: "按元素比较输入Tensor A和输入Tensor B的大小，若A>B，对应位置返回true。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/aolapi/atlasoxol_09_0069.html
sourcePath: /source/zh/canncommercial/900/API/aolapi/atlasoxol_09_0069.html
indexId: 575b90e06830faa59f380eab29936e6ace23d0bdb026f8cb5728b90087d4bcc463
---
# Greater

#### 功能

按元素比较输入Tensor A和输入Tensor B的大小，若A>B，对应位置返回true。


#### 输入

- A：输入Tensor，数据类型：float16、float、int32、int8、uint8。
- B：输入Tensor，数据类型：float16、float、int32、int8、uint8。


#### 输出

y：输出Tensor，数据类型：bool。


#### 约束与限制

无。


#### 支持的ONNX版本

Opset v8/v9/v10/v11/v12/v13/v14/v15/v16/v17/v18
