Packs the elements of a binary-valued array into bits in a uint8 array.
This function currently does not support
Parameters: myarray (cupy.ndarray) – Input array. Returns: The packed array. Return type: cupy.ndarray
When the input array is empty, this function returns a copy of it, i.e., the type of the output array is not necessarily always uint8. This exactly follows the NumPy’s behaviour (as of version 1.11), alghough this is inconsistent to the documentation.