vandanavk commented on a change in pull request #12498: Code modification for  
testcases of various network models in directory example
URL: https://github.com/apache/incubator-mxnet/pull/12498#discussion_r237273344
 
 

 ##########
 File path: example/fcn-xs/fcn_xs.py
 ##########
 @@ -28,9 +28,9 @@
 
 logger = logging.getLogger()
 logger.setLevel(logging.INFO)
-ctx = mx.gpu(0)
 
 def main():
+    ctx = mx.cpu() if args.gpu == None else mx.gpu(0)
 
 Review comment:
   `if not args.gpu` ?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to