Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion userbenchmark/dynamo/dynamobench/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
import torch.distributed
import torch.multiprocessing as mp
from torch._C import _has_cuda as HAS_CUDA, _has_xpu as HAS_XPU
from torch._C._nativert import PyModelRunner
from torch._dynamo.profiler import fx_insert_profiling, Profiler
from torch._dynamo.testing import (
dummy_fx_compile,
Expand Down Expand Up @@ -1487,6 +1486,7 @@ def load(cls, model, example_inputs):
f, exported_programs={"forward": ep}
)
filename = f.name
from torch._C._nativert import PyModelRunner
cls.cache[key] = PyModelRunner(filename, "forward")

return cls.cache[key]
Expand Down