Skip to content

Commit 20a3903

Browse files
author
KevinMusgrave
committed
Updated the moco notebook
1 parent bdd7516 commit 20a3903

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

examples/notebooks/MoCoCIFAR10.ipynb

+2-1
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,8 @@
478478
" # add an offset so that the labels do not overlap with any labels in the memory queue\n",
479479
" labels += previous_max_label + 1\n",
480480
" # we want to enqueue the output of encK, which is the 2nd half of the batch\n",
481-
" enqueue_mask = torch.arange(num_pos_pairs, num_pos_pairs * 2)\n",
481+
" enqueue_mask = torch.zeros(len(labels)).bool()\n",
482+
" enqueue_mask[num_pos_pairs:] = True\n",
482483
" return labels, enqueue_mask\n",
483484
"\n",
484485
"\n",
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "2.0.0.dev0"
1+
__version__ = "2.0.0.dev1"

0 commit comments

Comments
 (0)