- Function: For each element in the input tensor self, the element is shifted left bitwise based on the parameter at the corresponding position in the input tensor shiftBits.
- Formulas:
Each operator is divided into . You must call the aclnnLeftShiftGetWorkspaceSize interface to obtain the workspace size required for computation and the executor that contains the operator computation process, and then call the aclnnLeftShift 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 default deterministic implementation of aclnnLeftShift is used.
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]