SIGN IN SIGN UP

[1/N][Test] Add hw_classification to `TestSparseCSRSampler` class (#193170)

- reformat imports in `test_sparse_csr.py`
- add hardware classification to `TestSparseCSRSampler`

---

This is a stack of PRs with the goal to enable XPU for `test_sparse_csr.py`:
- -> https://github.com/pytorch/pytorch/pull/193170
- https://github.com/pytorch/pytorch/pull/193171
- https://github.com/pytorch/pytorch/pull/193175
- https://github.com/pytorch/pytorch/pull/193179
Pull Request resolved: https://github.com/pytorch/pytorch/pull/193170
Approved by: https://github.com/CuiYifeng, https://github.com/etaf, https://github.com/jansel
P
Piotr Bielak committed
6f6183e30ac66ccd87dd2232b334315bd02ae09f
Parent: f772fda
Committed by PyTorch MergeBot <pytorchmergebot@users.noreply.github.com> on 8/24/2026, 8:17:52 AM