FilesLast commitLast update
5 hours ago
2 months ago
20 days ago
17 days ago
13 days ago
6 days ago
13 days ago
25 days ago
1 month ago
5 days ago
README

Lerp

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: performs linear interpolation between the start and end tensors based on the given weight, and returns the interpolated tensor.

  • Computation formula:

 out i= start i+ weight i×( end i− start i)\text { out }_i=\text { start }_i+\text { weight }_i \times\left(\text { end }_i-\text { start }_i\right)

Parameter Description

Parameter Name Input/Output/Attribute Description Data Type Data Format
self Input Input parameter for the lerp computation, which is start_i in the formula. FLOAT, FLOAT16, BFLOAT16 ND
end Input Input parameter for the lerp computation, which is end_i in the formula. FLOAT, FLOAT16, BFLOAT16 ND
weight Input Input parameter for the lerp computation, which is weight_i in the formula. FLOAT, FLOAT16, BFLOAT16 ND
out Output Output parameter for the lerp computation, which is out_i in the formula. FLOAT, FLOAT16, BFLOAT16 ND

Constraint Description

The dtypes of end and weight must be the same as that of self.

Invocation Description

Invocation Method Invocation Sample Description
aclnn invocation test_aclnn_lerp Invokes the Lerp operator through the aclnnLerp API.