trunk/78589bea5b32747f9a1f8d9315a48ecf52029d7a: [jit] Add stacklevel=2 to TorchScript deprecation warnings. (#200204)
- PyTorch 近 90 天出现 2083 次
- PyTorch 近 90 天第 2054 次发版
- 上一次:同一天稍早 · trunk/831c2f277448c8141866cc2d04663f23891a5530: [ROCm][UT] Re-enable test_copy_non_blocking_is_pinned on RDNA (#197359)
发生了什么
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…
摘要按规则整理自下方来源原文