FilesLast commitLast update
6 hours ago
5 months ago
2 months ago
22 days ago
1 month ago
12 days ago
12 days ago
12 days ago
22 days ago
20 days ago
5 days ago
README

stateless_random_normal_v2

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 normal distributions.
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. INT64 ND
counter Input Initial counter value used by the counter-based random number generation algorithm. INT64 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_normal_float_float Invokes the stateless_random_normal_v2 operator through the aclnnNormalFloatFloat API.
aclnn invocation test_aclnn_normal_float_tensor Invokes the stateless_random_normal_v2 operator through the aclnnNormalFloatTensor API.
aclnn invocation test_aclnn_normal_tensor_float Invokes the stateless_random_normal_v2 operator through the aclnnNormalTensorFloat API.
aclnn invocation test_aclnn_normal_tensor_tensor Invokes the stateless_random_normal_v2 operator through the aclnnNormalTensorTensor API.