Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support non-native endian inputs to
LabelEncoder
(#6384)
`numpy`/`pandas`/`cupy` support wrapping data with non-native endianness. `cudf` currently errors when wrapping such arrays coming from `numpy`/`cupy` (but not from pandas). This PR fixes `LabelEncoder` to cast to native endianness when receiving an numpy or cupy input, and adds a corresponding test. I can confirm that this fixes the hypothesis test failures we're seeing in nightlies currently. Supersedes #6379. Authors: - Jim Crist-Harif (https://github.com/jcrist) Approvers: - Simon Adorf (https://github.com/csadorf) URL: #6384
- Loading branch information