Closed DaHaiHuha closed 4 years ago
This code was originally developed for pytorch 0.4. It should also work with pytorch 1.0. I can't reproduce this bug with pytorch 0.4. What version of pytorch are you using?
This code was originally developed for pytorch 0.4. It should also work with pytorch 1.0. I can't reproduce this bug with pytorch 0.4. What version of pytorch are you using?
Thanks for your reply, I'm using the latest pytorch version 1.13. Yes, it works with pytorch 1.0 without this problem.
with the default parameters in repo, RuntimeError occurs in train_similarity_and_contact.py
It seems that there's a BUG in WeightedRandomSampler, could be pytorch version's problem, so any ideas for solving this? Or @tbepler could you please provide the version number of the pytorch when you developed it? Thanks!