← Back to events
ActiveAIRelease

trunk/78589bea5b32747f9a1f8d9315a48ecf52029d7a: [jit] Add stacklevel=2 to TorchScript deprecation warnings. (#200204)

Photo: PyTorch Releases

What happened

Summary: Author Notes Our training logs showed torch.jit deprecation warnings that all pointed at lines inside torch/jit/ , so we couldn't tell which of our code was calling TorchScript. This PR adds stacklevel=2 so each warning names the line that called it, and separate call sites no longer collapse into one message. Agent Notes The TorchScript deprecation FutureWarning s (made visible in #189914 ) don't pass stac…

Summary assembled by rule from the sources below

Why it's spreading

Sources