Clear all specializations, local instrumentation, and JIT code for the given function.
(f: types.FunctionType)
| 1461 | |
| 1462 | |
| 1463 | def reset_code(f: types.FunctionType) -> types.FunctionType: |
| 1464 | """Clear all specializations, local instrumentation, and JIT code for the given function.""" |
| 1465 | f.__code__ = f.__code__.replace() |
| 1466 | return f |
| 1467 | |
| 1468 | on_github_actions = "GITHUB_ACTIONS" in os.environ |
| 1469 |
searching dependent graphs…