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

fix : error device cuda

parent f59dbc73
No related branches found
No related tags found
No related merge requests found
...@@ -83,9 +83,6 @@ def train_model(config,args): ...@@ -83,9 +83,6 @@ def train_model(config,args):
imana = imana.cuda() imana = imana.cuda()
img_ref = img_ref.cuda() img_ref = img_ref.cuda()
label = label.cuda() label = label.cuda()
if torch.cuda.device_count() > 1:
pred_logits = model.module.forward(imaer, imana, img_ref)
else:
pred_logits = model.forward(imaer, imana, img_ref) pred_logits = model.forward(imaer, imana, img_ref)
......
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