We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ad4bdf commit 56596e4Copy full SHA for 56596e4
validate.py
@@ -181,7 +181,7 @@ def validate(args):
181
182
if args.torchscript:
183
torch.jit.optimized_execution(True)
184
- model = torch.jit.trace(model, example_inputs=torch.randn((args.batch_size,) + data_config['input_size']))
+ model = torch.jit.script(model)
185
if args.aot_autograd:
186
assert has_functorch, "functorch is needed for --aot-autograd"
187
model = memory_efficient_fusion(model)
0 commit comments