A basic CLAUDE.md based on bad things I see claude code doing (#162163)

Signed-off-by: Edward Yang <ezyang@meta.com>
Pull Request resolved: https://github.com/pytorch/pytorch/pull/162163
Approved by: https://github.com/albanD, https://github.com/Skylion007
This commit is contained in:
Edward Yang
2025-09-04 09:26:32 -04:00
committed by PyTorch MergeBot
parent a714437093
commit 2dd529df00

15
CLAUDE.md Normal file
View File

@ -0,0 +1,15 @@
# Testing
Use our test class and test runner:
```
from torch.testing._internal.common_utils import run_tests, TestCase
class TestFeature(TestCase):
...
if __name__ == "__main__":
run_tests()
```
To test Tensor equality, use assertEqual.