We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d9a5a85 + 8f7ae3e commit 31432d2Copy full SHA for 31432d2
test.py
@@ -111,7 +111,7 @@ def seed_everything(seed=2022):
111
result_path=f'{args.output}', # path to save temporary result file of testset
112
)
113
model.load_state_dict(
114
- torch.load(f'./model/BCE_633_GraphBepi/model_-1.ckpt')['state_dict'],
+ torch.load(f'./model/BCE_633_GraphBepi/model_-1.ckpt',map_location='cpu')['state_dict'],
115
116
trainer = pl.Trainer(gpus=[args.gpu],logger=None)
117
result = trainer.test(model,test_loader)
0 commit comments