cupy.unpackbits#

cupy.unpackbits(a, axis=None, bitorder='big')[source]#

Unpacks elements of a uint8 array into a binary-valued output array.

This function currently does not support axis option.

Parameters:
  • a (cupy.ndarray) – Input array.

  • bitorder (str, optional) – bit order to use when unpacking the array, allowed values are ‘little’ and ‘big’. Defaults to ‘big’.

Returns:

The unpacked array.

Return type:

cupy.ndarray