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 2019/11/04 19:48:20 UTC

[GitHub] [incubator-mxnet] nickguletskii commented on issue #16718: Cleaner API for utilizing all GPUs if available

nickguletskii commented on issue #16718: Cleaner API for utilizing all GPUs if available
URL: https://github.com/apache/incubator-mxnet/issues/16718#issuecomment-549517741
 
 
   I think it would be better to introduce a separate function called `mxnet.all_gpus(): List[mxnet.Context]`, instead of adding a parameter to `mxnet.gpu`. This way, the return type of `mxnet.gpu` will remain `mxnet.Context`, instead of becoming `Union[mxnet.Context, List[mxnet.Context]]`.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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