diff options
| author | jdj <jdj@kunix.org> | 2026-10-29 11:50:22 -0700 |
|---|---|---|
| committer | jdj <jdj@kunix.org> | 2026-10-29 11:50:22 -0700 |
| commit | a0ddfb1b2f6242fac72f98e8d6ee1888e79667f3 (patch) | |
| tree | a6e19658bae8466cb177d2ade41ad9176d23c2f8 /tests/test_ref.py | |
| parent | 2a02fecc86a87a6f1639b80da932b1f9daed8f17 (diff) | |
| download | volta-train-kernels-master.tar.gz volta-train-kernels-master.zip | |
Validate offsets and canon_rope_attention shapes; default test device cuda:0 with safe skip; narrow README claimsHEADmaster
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'tests/test_ref.py')
| -rw-r--r-- | tests/test_ref.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_ref.py b/tests/test_ref.py index 5024971..c9fd93d 100644 --- a/tests/test_ref.py +++ b/tests/test_ref.py @@ -19,5 +19,10 @@ class TestReference(unittest.TestCase): self.assertLess(((m[name] - want).norm() / want.norm()).item(), 1e-12, name) +class TestDeviceSelection(unittest.TestCase): + def test_missing_device_is_a_skip_reason_not_an_error(self): + self.assertIsInstance(usable(torch.device("cuda:99")), str) + + if __name__ == "__main__": unittest.main() |
