[torch.compile] Inductor code caching fix (#10273)

Signed-off-by: luka <luka@neuralmagic.com>
Signed-off-by: Luka Govedic <luka.govedic@gmail.com>
This commit is contained in:
Luka Govedič
2024-11-20 21:44:57 -08:00
committed by GitHub
parent 9d827170a3
commit 8b0fe06c89
14 changed files with 602 additions and 286 deletions
-9
View File
@@ -1501,15 +1501,6 @@ class LazyDict(Mapping, Generic[T]):
return len(self._factory)
def combine_fx_passes(passes: List[Callable]) -> Callable:
def combined_fx(graph) -> None:
for fx in passes:
fx(graph)
return combined_fx
def weak_ref_tensor(tensor: torch.Tensor) -> torch.Tensor:
"""
Create a weak reference to a tensor.