FilesLast commitLast update
30 days ago
3 months ago
12 days ago
4 days ago
2 months ago
12 days ago
4 days ago
30 days ago
11 days ago
README

RsqrtGrad

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: computes the backward gradient of the Rsqrt operator.

  • Computation formula:

z=−0.5×dy×y3z = -0.5 \times dy \times y^{3}

Here, y is the forward output of the Rsqrt operator.

Parameter Description

Parameter Name Input/Output/Attribute Description Data Type Data Format
y Input Forward output of the Rsqrt operator, which is y in the formula. BFLOAT16, FLOAT16, FLOAT, INT8, INT32 ND
dy Input Output gradient, which is dy in the formula. BFLOAT16, FLOAT16, FLOAT, INT8, INT32 ND
z Output Input gradient, which is z in the formula. Its shape is the same as that of y. BFLOAT16, FLOAT16, FLOAT, INT8, INT32 ND

Constraint Description

None

Invocation Description

Invocation Method Invocation Sample Description
Graph-mode invocation test_geir_rsqrt_grad Invokes the RsqrtGrad operator by building a graph through the operator IR.