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: 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). is the element at the corresponding position in the output tensor[object Object]. The formula is as follows:
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.
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]
- 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 .
The following example is for reference only. For details, see .