FilesLast commitLast update
9 months ago
6 months ago
9 months ago
13 days ago
13 days ago
13 days ago
22 days ago
13 days ago
6 days ago
README

StatelessRandomUniformV2

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 number tensor, where the random numbers are drawn from independent uniform distributions.

Parameter Description

Parameter Name Input/Output/Attribute Description Data Type Data Format
shape Input Shape of the input tensor. INT64, INT32 ND
key Input Key used by the counter-based random number generation algorithm, with the shape [1]. UINT64 ND
counter Input Initial counter value used by the counter-based random number generation algorithm. It is a 1D tensor with at least 2 elements. UINT64 ND
alg Input Algorithm used to generate random numbers. INT32 ND
out Output Outputs random values with the specified shape. FLOAT, BF16, FLOAT16 ND

Constraint Description

None

Invocation Description

Invocation Method Sample Code Description
aclnn invocation test_aclnn_stateless_random_uniform_v2 Invokes the StatelessRandomUniformV2 operator through the aclnnInplaceUniform API.