Skip to content

Conversation

@ceferisbarov
Copy link

torch.load(model_file) does not work if the device is set to CPU, so I replaced all of these calls with torch.load(model_file, map_location=device) which is more device-agnostic.

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