Skip to content

Commit 56596e4

Browse files
committed
jit trace comparisons snuck into torchscript part of validate.py, fixed
1 parent 8ad4bdf commit 56596e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

validate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def validate(args):
181181

182182
if args.torchscript:
183183
torch.jit.optimized_execution(True)
184-
model = torch.jit.trace(model, example_inputs=torch.randn((args.batch_size,) + data_config['input_size']))
184+
model = torch.jit.script(model)
185185
if args.aot_autograd:
186186
assert has_functorch, "functorch is needed for --aot-autograd"
187187
model = memory_efficient_fusion(model)

0 commit comments

Comments
 (0)