Skip to content
Closed
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
7 changes: 4 additions & 3 deletions torch/_dynamo/debug_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ def nvfuser_fails(fx_g, args, check_str=None):


def inductor_accuracy_fails(fx_g, args, check_str=None):
from torchinductor.compile_fx import compile_fx_inner
from torch._inductor.compile_fx import compile_fx_inner

return backend_aot_accuracy_fails(fx_g, args, compile_fx_inner)

Expand Down Expand Up @@ -874,10 +874,11 @@ def dynamo_minifier_backend(gm, example_inputs, compiler_name):
@register_backend
def dynamo_accuracy_minifier_backend(gm, example_inputs, compiler_name):
from functorch.compile import minifier
from torchdynamo.optimizations.backends import BACKENDS

from torch._dynamo.optimizations.backends import BACKENDS

if compiler_name == "inductor":
from torchinductor.compile_fx import compile_fx
from torch._inductor.compile_fx import compile_fx

compiler_fn = compile_fx
else:
Expand Down