Skip to content
Snippets Groups Projects
Commit 81b28b4a authored by Engin Eren's avatar Engin Eren
Browse files

indent. error

parent 297899d9
No related branches found
No related tags found
No related merge requests found
Pipeline #4559918 passed
......@@ -40,7 +40,7 @@ spec:
limits:
nvidia.com/gpu: 1
Worker:
replicas: 4
replicas: 2
restartPolicy: OnFailure
template:
metadata:
......
......@@ -274,9 +274,8 @@ def run(args):
print('Critic trainable params:', sum(p.numel() for p in Crit_E_H.parameters() if p.requires_grad))
print('Generator trainable params:', sum(p.numel() for p in Gen_E_H.parameters() if p.requires_grad))
if args.world_size > 1:
Distributor = nn.parallel.DistributedDataParallel if use_cuda \
else nn.parallel.DistributedDataParallelCPU
if args.world_size > 1:
Distributor = nn.parallel.DistributedDataParallel if use_cuda else nn.parallel.DistributedDataParallelCPU
Crit_E_H = Distributor(Crit_E_H, device_ids=[args.local_rank], output_device=args.local_rank )
Gen_E_H = Distributor(Gen_E_H, device_ids=[args.local_rank], output_device=args.local_rank )
......
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