Closed Kins1ley closed 4 years ago
Hi, when I resume from the checkpoint file, I found that it produced erro when called
_checkpoint = torch.load(filename, map_location=maplocation)
The error is int object is not callable.
Because _maplocation is calculated in the following code:
_map_location = torch.cuda.currentdevice()
and the result is int number.
I just changed the code into
checkpoint = torch.load(filename)
And it seems no bug.
you can try map_location = torch.cuda.device(torch.cuda.current_device())
Hi, when I resume from the checkpoint file, I found that it produced erro when called
_checkpoint = torch.load(filename, map_location=maplocation)
The error is int object is not callable.
Because _maplocation is calculated in the following code:
_map_location = torch.cuda.currentdevice()
and the result is int number.