- This API performs bitwise left shift on each element in the input tensor self according to the input scalar shiftBits.
- Formulas:
Each operator is divided into . You must call the aclnnLeftShiftsGetWorkspaceSize interface to obtain the workspace size required for computation and the executor that contains the operator computation process, and then call the aclnnLeftShifts interface to perform computation.
[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]
Deterministic computation:
- The aclnnLeftShifts is implemented in a deterministic manner by default.
The precision is accurate only when the value of shiftBits is less than the bit width of the self data type.
The following example is for reference only. For details, see .
[object Object]