Skip to content

Commit

Permalink
fixing issue 71
Browse files Browse the repository at this point in the history
Summary:
TSIA

#71

Reviewed By: xuzhao9

Differential Revision: D66368132

fbshipit-source-id: fd6db21c601270ab5c1380861f64452ab419befb
  • Loading branch information
adamomainz authored and facebook-github-bot committed Nov 22, 2024
1 parent 8f8db26 commit 17e025d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tritonbench/operator_loader/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import torch
from torch._dynamo.backends.cudagraphs import cudagraphs_inner
from torch._inductor.compile_fx import compile_fx
from torch._inductor.utils import gen_gm_and_inputs
from torch._ops import OpOverload
from torch.utils._pytree import tree_map_only
Expand Down Expand Up @@ -102,6 +101,9 @@ def get_input_iter(self) -> Generator:
"aten::convolution_backward",
)
if self.device == "cuda":
from torch._inductor.compile_fx import compile_fx


cudagraph_eager = cudagraphs_inner(
gm, gm_args, copy_outputs=False, copy_inputs=False
)
Expand Down

0 comments on commit 17e025d

Please sign in to comment.