-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DLPack Support for np.uint16 seems broken #24680
Comments
Looks like this also affects
|
Thanks for the report! I can also reproduce the error, and there seem to be a few strange things going on.
|
As discovered in jax-ml/jax#24680, when a PyTorch tensor has a dimension with size `1`, it seems to report the DLPack stride for that dimension as `1`. This behavior wasn't supported by the logic in XLA, resulting in an incorrect layout on the imported array. PiperOrigin-RevId: 696341186
As discovered in jax-ml/jax#24680, when a PyTorch tensor has a dimension with size `1`, it seems to report the DLPack stride for that dimension as `1`. This behavior wasn't supported by the logic in XLA, resulting in an incorrect layout on the imported array. PiperOrigin-RevId: 696341186
Description
System info (python version, jaxlib version, accelerator, etc.)
jax: 0.4.35
jaxlib: 0.4.34
numpy: 1.26.4
python: 3.10.14 (main, May 6 2024, 19:42:50) [GCC 11.2.0]
device info: NVIDIA GeForce RTX 4090-1, 1 local devices"
process_count: 1
platform: uname_result(system='Linux', node='LabPC', release='6.8.0-47-generic', version='#47~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Oct 2 16:16:55 UTC 2', machine='x86_64')
$ nvidia-smi
Sun Nov 3 14:56:27 2024
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 550.107.02 Driver Version: 550.107.02 CUDA Version: 12.4 |
|-----------------------------------------+------------------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+========================+======================|
| 0 NVIDIA GeForce RTX 4090 Off | 00000000:01:00.0 Off | Off |
| 0% 43C P2 17W / 450W | 655MiB / 24564MiB | 6% Default |
| | | N/A |
+-----------------------------------------+------------------------+----------------------+
+-----------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=========================================================================================|
| 0 N/A N/A 242483 G /usr/lib/xorg/Xorg 132MiB |
| 0 N/A N/A 242640 G /usr/bin/gnome-shell 12MiB |
| 0 N/A N/A 245588 G ...erProcess --variations-seed-version 30MiB |
| 0 N/A N/A 268770 G ...irefox/5187/usr/lib/firefox/firefox 65MiB |
| 0 N/A N/A 2020781 C python 386MiB |
+-----------------------------------------------------------------------------------------+
The text was updated successfully, but these errors were encountered: