FilesLast commitLast update
12 days ago
2 months ago
3 months ago
1 day ago
15 days ago
1 day ago
3 months ago
15 days ago
1 day ago
1 month ago
13 days ago
README

Reciprocal

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 new tensor with the reciprocal of each input element.
  • Computation formula:

out=1inputout = {\frac{1} {input}}

Parameter Description

Parameter Name Input/Output/Attribute Description Data Type Data Format
self Input Input in the formula. FLOAT, FLOAT16, BFLOAT16 ND
out Output out in the formula. FLOAT, FLOAT16, BFLOAT16 ND

Constraint Description

None

Invocation Description

Invocation Method Invocation Sample Description
aclnn invocation test_aclnn_reciprocal Invokes the Reciprocal operator through the aclnnReciprocal&aclnnInplaceReciprocal API.