[object Object][object Object][object Object]undefined
[object Object]
  • 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:
outi=selfi<<shiftBitsiout_{i} = self_{i}<<shiftBits_{i} [object Object]

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]
[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 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.

[object Object]

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

[object Object]