Skip to content

Commit 97393f4

Browse files
davidberard98facebook-github-bot
authored andcommitted
args.jit -> model.jit (pytorch#1086)
Summary: Pull Request resolved: pytorch#1086 fix typo Reviewed By: xuzhao9 Differential Revision: D38445415 fbshipit-source-id: 63ff86560e5127e381b34db7172faeab90b9f0e4
1 parent d1fccd8 commit 97393f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchbenchmark/util/extra_args.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def apply_opt_args(model: 'torchbenchmark.util.model.BenchmarkModel', args: argp
133133
import torch
134134
model.add_context(lambda: torch.jit.fuser(args.fuser))
135135
if args.fx2trt:
136-
if args.jit:
136+
if model.jit:
137137
raise NotImplementedError("fx2trt with JIT is not available.")
138138
module, exmaple_inputs = model.get_module()
139139
fp16 = not (model.dargs.precision == "fp32")

0 commit comments

Comments
 (0)