[Bugfix] Fix standalone torch.compile cache loading after relocation (#52142)

Signed-off-by: jungjiyu <libraryofjiyu@gmail.com>
Co-authored-by: Misha Goin <mgoin64@gmail.com>
This commit is contained in:
Jung Jiyu
2026-09-29 12:53:20 -04:00
committed by GitHub
co-authored by Misha Goin
parent cd94b21264
commit cb4f016c5d
2 changed files with 49 additions and 1 deletions
+1 -1
View File
@@ -418,7 +418,7 @@ class InductorStandaloneAdaptor(CompilerInterface):
assert isinstance(handle, tuple)
assert isinstance(handle[0], str)
assert isinstance(handle[1], str)
path = handle[1]
path = os.path.join(self.cache_dir, handle[0])
inductor_compiled_graph = torch._inductor.CompiledArtifact.load(
path=path, format=self.save_format
)