Hi ptrblck
I saved my trained Nets on GPU and now wants to use them on CPU.
I read your comments but still have same problem as (AttributeError: ‘list’ object has no attribute ‘load_state_dict’
My code is:
            checkpoint = torch.load(Path1,map_location=torch.device('cpu'))

model.load_state_dict(torch.load(Path1,map_location=torch.device(‘cpu’))[‘model_state_dict’])
            model.load_state_dict(torch.load(Path1)['model_state_dict'])
            optimizer.load_state_dict(torch.load(Path1,map_location=torch.device('cpu'))['optimizer_state_dict'])