Skip to content

Commit

Permalink
Completely fix unexpected keyword argument
Browse files Browse the repository at this point in the history
  • Loading branch information
ufoym committed Dec 11, 2017
1 parent f2bbfe7 commit 25da17a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/networks.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def define_D(input_nc, ndf, n_layers_D, norm='instance', use_sigmoid=False, num_
print(netD)
if len(gpu_ids) > 0:
assert(torch.cuda.is_available())
netD.cuda(device_id=gpu_ids[0])
netD.cuda(gpu_ids[0])
netD.apply(weights_init)
return netD

Expand Down

0 comments on commit 25da17a

Please sign in to comment.