FilesLast commitLast update
12 days ago
9 months ago
24 days ago
1 month ago
10 days ago
24 days ago
10 days ago
24 days ago
1 month ago
5 days ago
README

StatelessRandperm

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: returns a random permutation of the integers from 0 to N-1.

Parameter Description

Parameter Name Input/Output/Attribute Description Data Type Data Format
n Input Number of generated results, which corresponds to N in the operator function. INT64 ND
seed Input Random number seed. INT64 ND
offset Input Offset value. INT64 ND
layout Attribute Storage format. INT -
dtype Attribute Specifies the data type of the output. INT64 -
y Output Element values after random permutation. INT64, INT32, INT16, UINT8, INT8, FLOAT16, FLOAT, DOUBLE, BF16 ND

Constraint Description

None

Invocation Description

Invocation Method Sample Code Description
aclnn invocation test_aclnn_randperm Invokes the StatelessRandperm operator through the aclnnRandperm API.