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

GreaterEqual

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 or equal to the value of the other scalar, and returns a tensor of the Bool type, indicating whether the greater-than-or-equal-to check at each position in the input tensor holds.

  • Computation formula: For the input parameter self and the comparison scalar other, ge 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. FLOAT, FLOAT16, BFLOAT16, INT32, INT64, UINT64, INT8, UINT8, BOOL ND
x2 Input Input tensor x2 in the formula. FLOAT, FLOAT16, BFLOAT16, INT32, INT64, UINT64, 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_ge_scalar Invokes the GreaterEqual operator through the aclnnGeScalar&aclnnInplaceGeScalar API.
GE graph mode test_geir_greater_equal Invokes the GreaterEqual operator by building a graph through the operator IR.