You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/12/24 15:17:10 UTC

[GitHub] TaoLv commented on a change in pull request #12498: Code modification for testcases of various network models in directory example

TaoLv 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_r243837599
 
 

 ##########
 File path: example/bayesian-methods/bdk_demo.py
 ##########
 @@ -156,42 +156,42 @@ def get_toy_sym(teacher=True, teacher_noise_precision=None):
     return net
 
 
-def dev():
-    return mx.gpu()
+def dev(xpu = None):
 
 Review comment:
   No need to have white spaces before and after `=`. Also, `xpu` is a little confusing for me as its value should be either `gpu` or `cpu` according to the name. But here in this case it equals to gpu numbers.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services