Pows
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 | √ |
| Kirin X90 processor series products | √ |
| Kirin 9030 processor series products | √ |
Function Description
- Operator function: applies the power operation with the exponent to each element in input.
- Computation formula:
outi=selfiexponentiout_i = self_i^{exponent_i}
Parameter Description
| Parameter Name | Input/Output/Attribute | Description | Data Type | Data Format |
|---|---|---|---|---|
| self | Input | Input `self` in the formula, an aclTensor on the Device side. | FLOAT, FLOAT16, BFLOAT16 | ND |
| exponent | Input | Input `exponent` in the formula, an aclScalar on the Device side. | FLOAT, FLOAT16, BFLOAT16 | ND |
| out | Output | Output `out` in the formula, an aclTensor on the Device side. | FLOAT, FLOAT16, BFLOAT16 | ND |
- Kirin X90/Kirin 9030 processor series products, Atlas training products, and Atlas inference products: BFLOAT16 is not supported.
Constraint Description
None
Invocation Description
| Invocation Method | Invocation Sample | Description |
|---|---|---|
| Graph-mode invocation | test_geir_pows | Invokes the Pows operator by building a graph through the operator IR. |