mustass / diffusion_models_for_speech

Deep Learning course project repository.
https://kurser.dtu.dk/course/02456
1 stars 0 forks source link

2 devices when training on gpu #5

Closed mustass closed 1 year ago

mustass commented 1 year ago

I have changed the numpy methods to torch and played around for a bit. If I get it right, pytorch lightning is supposed to handle devices without having to specify anything. This does not seem to happen here, i.e. when I call torch.linspace() in the init of a lit module it does not go to cuda:0 but instead to cpu. So i guess everything about our model is on cpu and everything that comes from the dataloader is on cuda:0. :(