[object Object]

[object Object][object Object]undefined
[object Object]
  • Function: Performs elementwise computation.
  • Formulas:out=self×mask×scaleout = self \times mask \times scale
[object Object]

Each operator is divided into two-phase APIs (../common/two_phase_apis.md). You must call the aclnnMaskedScaleGetWorkspaceSize API to obtain the input parameters, calculate the required workspace size based on the process, and then call the aclnnMaskedScale API to perform computation.

[object Object]
[object Object]
[object Object]
  • Parameter description:

    [object Object]
  • 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]
  • Parameter description:

    [object Object]
  • Returns

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

[object Object]
  • Deterministic computation:
    • The aclnnMaskedScale is implemented in deterministic mode by default.
[object Object]

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

[object Object]