[object Object]

[object Object][object Object]undefined
[object Object]
  • Description: Computes the cumulative sum of elements in the input tensor [object Object] in sequence along the specified [object Object] and stores the result in the output tensor [object Object].

  • Formula: x_ix\_{i} is an element in the input tensor [object Object] along the [object Object] dimension (where indices of other dimensions remain unchanged while the index of [object Object] increments sequentially). y_iy\_{i} is the element at the corresponding position in the output tensor [object Object]. The formula is as follows:

yi=x1+x2+x3+......+xiy_{i} = x_{1} + x_{2} + x_{3} + ...... + x_{i} [object Object]

Each operator has calls. First, [object Object] is called to obtain the workspace size required for computation and the executor that contains the operator computation process. Then, [object Object] is called to perform computation.

[object Object]
[object Object]
[object Object]
  • Parameters

    [object Object]
    • [object Object]Atlas inference products[object Object], [object Object]Atlas 200I/500 A2 inference products[object Object], and [object Object]Atlas training products[object Object]: The data type cannot be BFLOAT16.
  • Returns

    [object Object]: status code. For details, see .

    The first-phase API implements input parameter validation. The following error codes may be returned.

    [object Object]
[object Object]
  • Parameters

    [object Object]
  • Returns

    [object Object]: status code. For details, see .

[object Object]
  • Deterministic computation:
    • [object Object] defaults to a deterministic implementation.

If the input data type is different from the output data type, [object Object] calls [object Object] to convert the input data type to the output data type before computation. In this case, follow the constraints of the [object Object] operator. For details, see .

[object Object]

The following example is for reference only. For details, see .

[object Object]