FilesLast commitLast update
10 days ago
28 days ago
3 months ago
1 month ago
23 days ago
1 month ago
1 month ago
11 days ago
1 month ago
28 days ago
11 days ago
README

LessEqual

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: determines whether the element values in the input self are less than or equal to the value of other, and writes the comparison result of each element of self with the value of other into out.

  • Computation formula:

    outi=(selfi<=other)?[True]:[False]out_i = (self_i <= other) ? [True] : [False]

Parameter Description

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

Invocation Description

Invocation Method Invocation Sample Description
aclnn API test_aclnn_le_scalar Invokes the LessEqual operator through the aclnnLeScalar&aclnnInplaceLeScalar API.