Open aiXander opened 1 year ago
I met the same bug on a new conda environment (with Pytorch 2.0). But I didn't meet this bug on the old conda envrionment (with Pytorch 1.12, 1.10). Maybe it is a bug reduced by a new Pytorch version, I'm not sure. Modifying the code as you said can fix this problem, which has been updated in the code.
I had the same issue today trying to upgrade torch for being able to work with newer gpus. I’ll share my solution in a few days.
Getting this error:
Changing
logvar_t = self.logvar[t].to(self.device)
tologvar_t = self.logvar[t.cpu()].to(self.device)
Solved this, but that feels like the wrong place to fix this bug...