Skip to content
Snippets Groups Projects
Commit b938ff4c authored by Schneider Leo's avatar Schneider Leo
Browse files

memory leak

parent 915e419e
No related branches found
No related tags found
No related merge requests found
......@@ -199,9 +199,7 @@ def test_best_model(best_result, args):
if torch.cuda.is_available():
device = "cuda:0"
if torch.cuda.device_count() > 1:
print(type(best_trained_model))
best_trained_model = torch.nn.DataParallel(best_trained_model)
print(type(best_trained_model))
best_trained_model.to(device)
criterion_rt = torch.nn.MSELoss()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment