Open JulyFaraway opened 2 years ago
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.