From 2dd529df0092799f68ee7afcf52338276906706a Mon Sep 17 00:00:00 2001 From: Edward Yang Date: Thu, 4 Sep 2025 09:26:32 -0400 Subject: [PATCH] A basic CLAUDE.md based on bad things I see claude code doing (#162163) Signed-off-by: Edward Yang Pull Request resolved: https://github.com/pytorch/pytorch/pull/162163 Approved by: https://github.com/albanD, https://github.com/Skylion007 --- CLAUDE.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 CLAUDE.md diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 000000000000..dcdf409e7314 --- /dev/null +++ b/CLAUDE.md @@ -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.