trunk/78589bea5b32747f9a1f8d9315a48ecf52029d7a: [jit] Add stacklevel=2 to TorchScript deprecation warnings. (#200204)
- PyTorch: 2083 events in the last 90 days
- PyTorch: 2054th Release in the last 90 days
- Previous: earlier the same day · trunk/831c2f277448c8141866cc2d04663f23891a5530: [ROCm][UT] Re-enable test_copy_non_blocking_is_pinned on RDNA (#197359)
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