Skip to content

Commit

Permalink
Fixed CPU context on segmentation train (#485)
Browse files Browse the repository at this point in the history
Fix CPU context
  • Loading branch information
ifeherva authored and zhanghang1989 committed Nov 27, 2018
1 parent 48ea65f commit 87cddd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/segmentation/train.py
Expand Up @@ -91,7 +91,7 @@ def parse_args():
if args.no_cuda:
print('Using CPU')
args.kvstore = 'local'
args.ctx = mx.cpu(0)
args.ctx = [mx.cpu(0)]
else:
print('Number of GPUs:', args.ngpus)
args.ctx = [mx.gpu(i) for i in range(args.ngpus)]
Expand Down

0 comments on commit 87cddd7

Please sign in to comment.