Skip to content

Commit

Permalink
Merge pull request #11 from modricwang/patch-1
Browse files Browse the repository at this point in the history
Update test_latency.py : fix import issue, use deploy state during speed test
  • Loading branch information
HantingChen authored May 31, 2023
2 parents 2b30054 + 37ceed6 commit 5a82506
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test_latency.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import torchvision
import time

import models.vanillanet
from models.vanillanet import *


if __name__ == "__main__":
Expand All @@ -22,6 +22,7 @@

net = vanillanet_5().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 5a82506

Please sign in to comment.