FilesLast commitLast update
4 days ago
1 month ago
3 months ago
4 days ago
17 days ago
3 days ago
1 month ago
4 days ago
3 days ago
1 month ago
5 days ago
README

Range

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: obtains values starting from start to end at the interval of step and saves them to the output 1-dimension tensor, where the data range is [start,end).
  • Computation formula:

    outi+1=outi+stepout_{i+1} = out_i+step

Parameter Description

Parameter Name Input/Output/Attribute Description Data Type Data Format
start Input Start position of the range for obtaining values. BFLOAT16, FLOAT16, FLOAT, INT32, INT64 ND
limit Input End position of the range for obtaining values. INT32, INT64 ND
delta Input Step length for obtaining values. FLOAT16, FLOAT, INT8, UINT8, INT32, INT64 ND
is_closed Input Attribute Specifies whether limit is included to form a closed interval. BOOL ND
y Output Output of the increasing sequence. FLOAT16, FLOAT, INT8, UINT8, INT32, INT64 ND

Constraint Description

None

Invocation Description

Invocation Method Sample Code Description
aclnn API test_aclnn_range Invokes the Range operator through the aclnnRange API.
aclnn API test_aclnn_arange Invokes the Range operator through the aclnnArange API.