Skip to content

Commit 31432d2

Browse files
committed
Merge branch 'main' of github.com:biomed-AI/GraphBepi into main
2 parents d9a5a85 + 8f7ae3e commit 31432d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def seed_everything(seed=2022):
111111
result_path=f'{args.output}', # path to save temporary result file of testset
112112
)
113113
model.load_state_dict(
114-
torch.load(f'./model/BCE_633_GraphBepi/model_-1.ckpt')['state_dict'],
114+
torch.load(f'./model/BCE_633_GraphBepi/model_-1.ckpt',map_location='cpu')['state_dict'],
115115
)
116116
trainer = pl.Trainer(gpus=[args.gpu],logger=None)
117117
result = trainer.test(model,test_loader)

0 commit comments

Comments
 (0)