Closed AtiqurRahmanAni closed 11 months ago
@all-contributors please add @AtiqurRahmanAni for code
@xuyxu
I've put up a pull request to add @AtiqurRahmanAni! :tada:
Approved, sorry for missing this PR for more than a month. Thanks for your PR. @AtiqurRahmanAni
Could you remove the changes on CONTRIBUTORS.md
in your PR? This would be automatically commited by the bot.
Faced a problem when trying to load models on the CPU. When using
io.load
to load a model ifcuda
is not available, an error occurs. I addedmap_location
to theload
method to solve this issue. Now you can load models on the CPU. You need to do likeio.load(......., map_location=torch.device('cpu'))
if you want to load the model on the CPU.