FilesLast commitLast update
17 days ago
26 days ago
3 months ago
16 days ago
21 days ago
29 days ago
30 days ago
30 days ago
9 days ago
29 days ago
26 days ago
9 days ago
README

Less

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 each element in the input self is less than the value of the input other, and returns a Tensor of the Bool type.

  • Computation formula:

    yi=(x1i<x2i)?[True]:[False]y_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_lt_scalar Invokes the Less operator through the aclnnLtScalar&aclnnInplaceLtScalar API.
GE graph mode test_geir_less Invokes the Less operator by building a graph through the operator IR.