Closed deklanw closed 3 years ago
PyTorch currently doesn't have sparse dropout https://github.com/pytorch/pytorch/issues/35798
I see that it's being emulated here https://github.com/RUCAIBox/RecBole/blob/cedd7eac5cd2455727532b031beedf224d92be2f/recbole/model/general_recommender/gcmc.py#L437 and https://github.com/RUCAIBox/RecBole/blob/cedd7eac5cd2455727532b031beedf224d92be2f/recbole/model/general_recommender/ngcf.py#L35
Regular PyTorch Dropout is disabled when model.eval is called because training is set to false on the model https://github.com/RUCAIBox/RecBole/blob/511cda89deca404808bea1df2f5e98e17e9015f1/recbole/trainer/trainer.py#L362
model.eval
training
Are these emulations of sparse dropout being disabled somewhere during evaluation?
Hi @deklanw . Thanks for your reminder, that's exactly a bug and we have fixed it in #601 .
PyTorch currently doesn't have sparse dropout https://github.com/pytorch/pytorch/issues/35798
I see that it's being emulated here https://github.com/RUCAIBox/RecBole/blob/cedd7eac5cd2455727532b031beedf224d92be2f/recbole/model/general_recommender/gcmc.py#L437 and https://github.com/RUCAIBox/RecBole/blob/cedd7eac5cd2455727532b031beedf224d92be2f/recbole/model/general_recommender/ngcf.py#L35
Regular PyTorch Dropout is disabled when
model.eval
is called becausetraining
is set to false on the model https://github.com/RUCAIBox/RecBole/blob/511cda89deca404808bea1df2f5e98e17e9015f1/recbole/trainer/trainer.py#L362Are these emulations of sparse dropout being disabled somewhere during evaluation?