r/pytorch • u/ggwardys • 10h ago
torchtest2
3
Upvotes
I've released a small open-source library: torchtest2. Hopefully, it'll be useful to anyone building custom neural network models.
torchtest2 runs checks like:
- whether every parameter gets a gradient;
- whether the output depends on all inputs;
- whether samples don't leak or mix across the batch.
Overall, I hope it saves you hours of wasted GPU time by catching "silent bugs" that don't raise runtime errors.
I'd love to hear your thoughts and feedback—and bug reports or pull requests would be even better😊
📄 Article: https://arxiv.org/abs/2611.23273
📦 PyPI: https://pypi.org/project/torchtest2/ (pip install torchtest2)
💻 Code: https://github.com/Hrehory/torchtest2 (Apache 2.0)