Skip to content

Conversation

@njbrown
Copy link

@njbrown njbrown commented Jul 27, 2020

This pr fixes bug causing CPU mode to not work.

device should have been self.device in line self.model.load_state_dict(torch.load(path, map_location=device))

also

if self.device == 'cpu': will always fail because it's a torch.device object was being compared to a string here.

Tested on Windows 10 with an AMD GPUand on macOS Sierra with an Intel GPU

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant