Skip to content

Commit

Permalink
Update test_latency.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ggjy authored Jun 6, 2023
1 parent 0be0372 commit b6b9bf7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test_latency.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@
size = 224
data_loader_val = create_loader(dataset_val, input_size=size, batch_size=1, is_training=False, use_prefetcher=False)

net = vanillanet_5().cuda()
net = vanillanet_5(deploy=True).cuda()
net.eval()
net.switch_to_deploy()
print(net)
for img, target in data_loader_val:
img = img.cuda()
Expand Down

0 comments on commit b6b9bf7

Please sign in to comment.