Skip to content

Commit

Permalink
Update test_latency.py
Browse files Browse the repository at this point in the history
fix import issue, use deploy state during speed test
  • Loading branch information
modricwang authored May 30, 2023
1 parent f5d8ec9 commit 37ceed6
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 37ceed6

Please sign in to comment.