torchfix icon indicating copy to clipboard operation
torchfix copied to clipboard

TorchFix - a linter for PyTorch-using code with autofix support

Results 15 torchfix issues
Sort by recently updated
recently updated
newest added

For many ops `dtype` parameter can be provided, and it should be preferred (from readability and performance point of views) to use it instead of converting the op results to...

new check

`contextlib.redirect_stderr` works on Mac, no need to additional clause

CLA Signed

Fixing a typo, also need to add an example because it's not too clear now.

CLA Signed

Example of false negatives that were previously undetected: ```python func = torch.my_deprecated_function func(A, B, C) ``` => ```python func = torch.my_new_function func([A, B, C]) ``` (Still needs updated test cases)

CLA Signed

Dependabot might need a click or two to [activate](https://docs.github.com/en/code-security/getting-started/dependabot-quickstart-guide), but will help keep the base and dev dependencies up-to-date without much effort. Alternatives such as renovate bot are available. No...

CLA Signed