trunk/75f36ef10712171a710343afce232b14e0c776d5: Fix NumPy ndarray operators under default device contexts (#185462)
- PyTorch 近 90 天出现 1733 次
- PyTorch 近 90 天第 1712 次发版
- 上一次:同一天稍早 · trunk/77dccac963ddc0a5d245e703178e5ffd033d4dc5
发生了什么
Dynamo models NumPy arrays as NumpyNdarrayVariable, a TensorVariable subclass used for implementation sharing. Active TorchFunctionModes were checked before the NumPy operator path, so a default device context routed ndarray-only expressions through tensor methods and tried to call methods such as ndarray.mul(). Skipping that trace-time mode dispatch exposed two related edge cases. The generated numpy_operator_wrapp…
摘要按规则整理自下方来源原文