FilesLast commitLast update
17 days ago
25 days ago
3 months ago
29 days ago
20 days ago
28 days ago
29 days ago
29 days ago
9 days ago
28 days ago
25 days ago
9 days ago
README

Greater

English | 简体中文

Product Support Status

Product Supported
Ascend 950PR&950DT products √
Atlas A3 products √
Atlas A2 products √
Atlas 200I/500 A2 inference products ×
Atlas inference products √
Atlas training products √

Function Description

  • Operator function: checks whether each element in the input tensor is greater than the value of the other scalar, and returns a tensor of the Bool type, indicating whether the greater-than check at each position in the input tensor holds.

  • Computation formula: For the input parameter self and the comparison scalar other, gt can be expressed by the following mathematical formula:

    yi=(x1i>x2i)?True:Falsey_{i}= (x1_i > x2_i) ? True : False

Parameter Description

Parameter Name Input/Output/Attribute Description Data Type Data Format
x1 Input Input tensor x1 in the formula. DOUBLE, FLOAT, FLOAT16, BFLOAT16, INT32, UINT32, INT64, UINT64, INT16, UINT16, INT8, UINT8, BOOL ND
x2 Input Input tensor x2 in the formula. DOUBLE, FLOAT, FLOAT16, BFLOAT16, INT32, UINT32, INT64, UINT64, INT16, UINT16, INT8, UINT8, BOOL ND
y Output Output tensor y in the formula. BOOL ND

Constraint Description

None

Invocation Description

Invocation Method Invocation Sample Description
aclnn API test_aclnn_gt_scalar Invokes the Greater operator through the aclnnGtScalar&aclnnInplaceGtScalar API.
GE graph mode test_geir_greater Invokes the Greater operator by building a graph through the operator IR.