Skip to content

Commit

Permalink
Merge pull request NVIDIA#2 from TheAussieStew/master
Browse files Browse the repository at this point in the history
Fix unexpected keyword argument
  • Loading branch information
junyanz authored Dec 10, 2017
2 parents db4a24d + 5b26d6a commit f2bbfe7
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 @@ -41,7 +41,7 @@ def define_G(input_nc, output_nc, ngf, netG, n_downsample_global=3, n_blocks_glo
print(netG)
if len(gpu_ids) > 0:
assert(torch.cuda.is_available())
netG.cuda(device_id=gpu_ids[0])
netG.cuda(gpu_ids[0])
netG.apply(weights_init)
return netG

Expand Down

0 comments on commit f2bbfe7

Please sign in to comment.