lasso-net / lassonet

Feature selection in neural networks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Check for presence of cuda is not being saved to self

p-smirnov opened this issue · comments

I think there is a bug in the following lines:

self.device = device
if device is None:
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")

device is set to CUDA is torch reports that cuda is available, but its done after self.device is already set.

Thanks! Btw I didn't test it on GPU and I think that loading models might fail so please report me the bugs!