-
Notifications
You must be signed in to change notification settings - Fork 7.2k
Closed
Description
vision/references/detection/engine.py
Line 86 in 7253e81
torch.cuda.synchronize() |
torch.cuda.synchronize(device=None) takes the cuda device name as a parameter, if nothing is given it uses current_ cuda device which is not always the one intended for use.
Moreover, the evaluation script implies that the model is loaded on the same device that passed as an argument.