Skip to content

Change to support computation on CPU.#16

Open
JulyFaraway wants to merge 1 commit intosamyak0210:masterfrom
JulyFaraway:master
Open

Change to support computation on CPU.#16
JulyFaraway wants to merge 1 commit intosamyak0210:masterfrom
JulyFaraway:master

Conversation

@JulyFaraway
Copy link
Copy Markdown

In model.load_state_dict, the "map_location" argument must also be set to match the device. Without this, the pretrained model calculated on the GPU cannot be used for calculations on the CPU.

In model.load_state_dict, the "map_location" argument must also be set to match the device. Without this, the pretrained model calculated on the GPU cannot be used for calculations on the CPU.
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