torch.compiler.reset
- torch.compiler.reset()[source]
This function clears all compilation caches and restores the system to its initial state. It is recommended to call this function, especially after using operations like torch.compile(…) to ensure a clean state before another unrelated compilation