You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0f5a252
Browse filesBrowse the repository at this point in the historyBrowse files
Add device type validation in aoti_torch_create_tensor_from_blob_v2 (pytorch#16344)
Validate that the data pointer location matches the requested
device_type.
This prevents silent data corruption when tensors are created with
mismatched data pointer and device type.
Changes:
- Add cudaPointerGetAttributes check to verify data pointer location
- Error out if CPU data is provided but CUDA device is requested
- Error out if CUDA data is provided but CPU device is requested
- Add unit tests for device type mismatch scenarios
0 commit comments