viable/strict/1790494194: Fix _sympy_mod crash on plain int operands (#198395) (#198395)
- PyTorch 近 90 天出现 1544 次
- PyTorch 近 90 天第 1525 次发版
- 上一次:同一天稍早 · ciflow/trunk/198744: Use hex float literal for 2^31 in float -> uint8 convert
发生了什么
Summary: Problem: f1145204272 failed with error InductorError: LoweringException: AttributeError: 'int' object has no attribute 'is_nonnegative'\n target: \n args[0]: 20\n args[1]: 8AttributeError: 'int' object has no attribute 'is_nonnegative'\n target: \n args[0]: 20\n args[1]: 8 Proposed fix: _sympy_mod in torch/fx/experimental/sym_node.py typed its operands as sympy.Basic and read .is_nonnegative off them direct…
摘要按规则整理自下方来源原文