[object Object][object Object][object Object]undefined
[object Object]
  • API function: Updates the local variables [object Object] and [object Object] (intermediate results output by PA operators in each SP domain) to global results.
  • Formula:
lsemax=maxlseilse_{max} = \text{max}lse_i lse=iexp(lseilsemax)lse = \sum_i \text{exp}(lse_i - lse_{max}) lsem=lsemax+log(lse)lse_m = lse_{max} + \text{log}(lse) O=iOiexp(lseilsem)O = \sum_i O_i \cdot \text{exp}(lse_i - lse_m) [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]
  • Returns

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

    The first-phase API implements input parameter verification. The following errors may be thrown.

    [object Object]
[object Object]
  • Parameters

    [object Object]
  • Returns

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

[object Object]
  • Deterministic computing:
    • [object Object] defaults to a deterministic implementation.
  • The value range of the parallel degree [object Object] for sequence parallelism is [1, 16].
  • The value range of [object Object] is [8, 512] and must be a multiple of 8.
  • Empty tensors are supported.
[object Object]

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

[object Object]