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:
Note: aclnnDropoutV2 is under development.
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]
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]
- Deterministic computation:
- The aclnnDropoutV3 function is implemented in deterministic mode by default.
The following example is for reference only. For details, see .
[object Object]