TorchFix is a linter for PyTorch-using code with autofix support, and this release brings new rules and other improvements.
See https://pypi.org/project/TorchFix/0.6.0/ and https://github.com/pytorch-labs/torchfix
TorchFix is a linter for PyTorch-using code with autofix support, and this release brings new rules and other improvements.
See https://pypi.org/project/TorchFix/0.6.0/ and https://github.com/pytorch-labs/torchfix
Couple of simple but interesting rules in this release: finding patterns like torch.log(1 + x)
and torch.exp(x) - 1
and suggesting replacing with more numerically stable equivalents.