trunk/fcebff2edcedc4a973b6124659b9b7932db725ad: Fix the version gate on the free-threaded profiler warning (#194697)
- PyTorch 近 90 天出现 71 次
- PyTorch 近 90 天第 71 次发版
- 上一次:同一天稍早 · ciflow/torchtitan/194829: Update
发生了什么
IS_PYTHON_3_14_PLUS is always defined (as PY_VERSION_HEX >= 0x030E0000 ), so !defined(IS_PYTHON_3_14_PLUS) was always false and the warning never fired on 3.13t. Introduced in #178551 , which almost certainly meant to check the macro's boolean value, not whether it's defined. Fix uses the macro's value instead. Test plan: compiled a probe with the guard against free-threaded 3.14 headers; old form is unreachable on…
摘要按规则整理自下方来源原文