FilesLast commitLast update
2 months ago
21 days ago
21 days ago
4 months ago
10 days ago
21 days ago
1 month ago
5 days ago
README

TruncatedNormalV2

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 sequence of random numbers that follows the standard normal distribution.

Parameter Description

Parameter Name Input/Output/Attribute Description Data Type Data Format
shape Input Shape of the output tensor. INT64, INT32 ND
offset Input Offset value. INT64 ND
seed Attribute Random number seed. INT ND
seed2 Attribute Random number seed. INT ND
dtype Attribute Specifies the data type of the output. INT ND
y Output Generated random number sequence. FLOAT16, FLOAT, BF16 ND

Constraint Description

None

Invocation Description

Invocation Method Sample Code Description
Graph-mode invocation test_geir_truncated_normal_v2 Invokes the TruncatedNormalV2 operator by building a graph through the operator IR.