Jiaming Yuan 2f22f8d49b
[backport] Make sure input numpy array is aligned. (#8690) (#8696) (#8734)
* [backport] Make sure input numpy array is aligned. (#8690)

- use `np.require` to specify that the alignment is required.
- scipy csr as well.
- validate input pointer in `ArrayInterface`.

* Workaround CUDA warning. (#8696)

* backport from half type support for alignment.

* fix import.
2023-02-06 16:58:15 +08:00
..
2022-09-27 21:18:23 +08:00
2022-06-06 22:56:25 +08:00
2022-09-27 21:18:23 +08:00
2022-09-21 18:06:50 +08:00
2020-08-12 01:26:02 -07:00