mirror of
https://github.com/huggingface/pytorch-image-models.git
synced 2025-06-03 15:01:08 +08:00
jit trace comparisons snuck into torchscript part of validate.py, fixed
This commit is contained in:
parent
8ad4bdfa06
commit
56596e4e84
@ -181,7 +181,7 @@ def validate(args):
|
||||
|
||||
if args.torchscript:
|
||||
torch.jit.optimized_execution(True)
|
||||
model = torch.jit.trace(model, example_inputs=torch.randn((args.batch_size,) + data_config['input_size']))
|
||||
model = torch.jit.script(model)
|
||||
if args.aot_autograd:
|
||||
assert has_functorch, "functorch is needed for --aot-autograd"
|
||||
model = memory_efficient_fusion(model)
|
||||
|
Loading…
x
Reference in New Issue
Block a user