[object Object]

[object Object][object Object]undefined
[object Object]
  • Function: During training, this API randomly sets elements in the input to zero based on the probability p, and scales the output by 1/(1 – p).

  • Formulas:

    outi={0, with probability p11pinputi, with probability 1pout_i=\begin{cases}0,&\text { with probability }p \\\frac{1}{1-p}input_i,&\text { with probability }1-p\end{cases}

Note: aclnnDropoutV2 is under development.

[object Object]

Each operator is divided into . You must call the aclnnDropoutV3GetWorkspaceSize interface to obtain the workspace size required for computation and the executor that contains the operator computation process, and then call the aclnnDropoutV3 interface to perform computation.

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

    [object Object]
  • Returns

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

    The first-phase API performs input parameter validation. The following errors may be returned:

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

    [object Object]
  • Returns

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

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

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

[object Object]