summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmodels/networks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/networks.py b/models/networks.py
index 2ec23ae..bf9f14b 100755
--- a/models/networks.py
+++ b/models/networks.py
@@ -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