Write High Quality Machine Learning code with PyTorch

Pythonistas, we’ve added an additional 3 PyTorch rules, namely:

  • S7616: Numerically stable PyTorch functions should be used instead of their unstable equivalents
  • S7675: Tensor copying should use recommended methods
  • S7695: “super()” calls should not be used in TorchScript methods

Availability:
SonarQube Cloud - now
SonarQube Server - 2025.5 Developer Edition and above
SonarQube IDE - your next update

Let us know what you think of them!