赞
踩
gpu->cpu model = torch.load(‘xxx.pkl’, map_location=‘cpu’)
CPU->GPU1 torch.load(‘gen_500000.pkl’, map_location=lambda storage, loc: storage.cuda(1))