Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move queue to gpu when resuming checkpoint - SWAV self supervised model #684

Merged
merged 12 commits into from
Aug 13, 2021
4 changes: 2 additions & 2 deletions pl_bolts/models/self_supervised/swav/swav_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ def on_train_epoch_start(self):
self.feat_dim,
)

if self.gpus > 0:
self.queue = self.queue.cuda()
if self.gpus > 0 and self.queue is not None:
self.queue = self.queue.cuda()
ananyahjha93 marked this conversation as resolved.
Show resolved Hide resolved

self.use_the_queue = False

Expand Down