Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
HobbitLong committed Jun 11, 2020
1 parent 6145bc3 commit d566677
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main_supcon.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ def train(train_loader, model, criterion, optimizer, epoch, opt):
data_time.update(time.time() - end)

images = torch.cat([images[0], images[1]], dim=0)
images = images.cuda(non_blocking=True)
labels = labels.cuda(non_blocking=True)
bsz = labels.shape[0]

Expand Down

0 comments on commit d566677

Please sign in to comment.