You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
benchmark.py
It is recommended to add a synchronization lock for calculating fps. The code is as follows:
torch.cuda.synchronize()
tic = time.perf_counter()
model(inputs)
torch.cuda.synchronize()
toc = time.perf_counter()
total_time += toc - tic
thank you!
The text was updated successfully, but these errors were encountered:
benchmark.py
It is recommended to add a synchronization lock for calculating fps. The code is as follows:
torch.cuda.synchronize()
tic = time.perf_counter()
model(inputs)
torch.cuda.synchronize()
toc = time.perf_counter()
total_time += toc - tic
thank you!
The text was updated successfully, but these errors were encountered: