Zeta
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 Hurwitz zeta function, that is, ζ(x, q) = Σ(n=0 to ∞) 1/(q+n)^x.
-
Computation formula:
z=ζ(x,q)=∑n=0∞1(q+n)xz = \zeta(x, q) = \sum_{n=0}^{\infty} \frac{1}{(q+n)^x}
Parameter Description
| Parameter Name | Input/Output/Attribute | Description | Data Type | Data Format |
|---|---|---|---|---|
| x | Input | Input tensor, which is the exponent parameter of the Hurwitz zeta function. | FLOAT, DOUBLE | ND |
| q | Input | Input tensor, which is the shift parameter of the Hurwitz zeta function. It must have the same data type as x. | FLOAT, DOUBLE | ND |
| z | Output | Output tensor, which is the computation result of the Hurwitz zeta function and has the same type and shape as x. | FLOAT, DOUBLE | ND |
Constraint Description
- The inputs x and q must have the same data type.
- The inputs x and q must have the same data size (broadcast is not supported).
Invocation Description
| Invocation Method | Sample Code | Description |
|---|---|---|
| Graph-mode invocation | test_geir_zeta | Invokes the Zeta operator through the operator IR API. |