Skip to content

Commit b21deb6

Browse files
jamesjwufacebook-github-bot
authored andcommitted
Retry of D58015187 Move AsyncCompile to a different file (#842)
Summary: X-link: facebookresearch/param#123 Pull Request resolved: #842 X-link: pytorch/ao#302 X-link: pytorch/pytorch#127691 This is a retry of https://github.com/pytorch/pytorch/pull/127545/files and D58015187, fixing the internal test that also imported codecache Reviewed By: oulgen, msaroufim Differential Revision: D58054611 fbshipit-source-id: 7a4d6602effa51c839ee8f650548e254c82a42a4
1 parent 198da58 commit b21deb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchtnt/framework/callbacks/torch_compile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import logging
1010

1111
try:
12-
from torch._inductor.codecache import shutdown_compile_workers
12+
from torch._inductor.async_compile import shutdown_compile_workers
1313
except ImportError:
1414

1515
def shutdown_compile_workers() -> None:

0 commit comments

Comments
 (0)