We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea26562 commit b883a90Copy full SHA for b883a90
notebooks/tensorflow/Tensorflow-1-NotMNIST.ipynb
@@ -878,9 +878,9 @@
878
"valid_dataset.flags.writeable = False\n",
879
"test_dataset.flags.writeable = False\n",
880
"\n",
881
- "train_hash = [hash(e.data) for e in train_dataset]\n",
882
- "valid_hash = [hash(e.data) for e in valid_dataset]\n",
883
- "test_hash = [hash(e.data) for e in test_dataset]\n",
+ "train_hash = [hash(e.tobytes()) for e in train_dataset]\n",
+ "valid_hash = [hash(e.tobytes()) for e in valid_dataset]\n",
+ "test_hash = [hash(e.tobytes()) for e in test_dataset]\n",
884
885
"unique_train_hash = set(train_hash)\n",
886
"valid_overlap = unique_train_hash.intersection(set(valid_hash))\n",
0 commit comments