Commit 476910f
[flex attention] change "==" to "is" in inspect parameter comparison (pytorch#165003)
Patch for pytorch#164760.
This doesn't actually fix the underlying torch function issue though.
Explanation: `is` is traced differently compared to `__eq__`, so we end up avoiding the issue where we attempt to evaluate `torch.eq(tensor, inspect._empty)` in the first place.
Pull Request resolved: pytorch#165003
Approved by: https://github.com/mlazos1 parent c8b25c0 commit 476910f
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
264 | | - | |
| 264 | + | |
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
| |||
0 commit comments