BitShift

Description

Performs bitwise shift on elements.

Input

  • x: input tensor of type int8, int16, int32, uint8, uint16, uint32, or uint64, indicating the input to be shifted.
  • y: tensor of type int8, int16, int32, uint8, uint16, uint32 or uint64, indicating the number of shifts.

Attribute

direction: The data type is string, indicating the shift direction. The value can be RIGHT or LEFT.

Output

z: tensor of type int8, int16, int32, uint8, uint16, uint32 or uint64, indicating the result after the shift.

Constraints

None.

ONNX Opset Support

Opset v11/v12/v13/v14/v15/v16/v17/v18