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/02/21 16:58:53 UTC

[GitHub] frankfliu commented on issue #14212: #14199: catch subprocess.CalledProcessError in get_gpus()

frankfliu commented on issue #14212: #14199: catch subprocess.CalledProcessError in get_gpus()
URL: https://github.com/apache/incubator-mxnet/pull/14212#issuecomment-466078833
 
 
   > Couldn't we replace that with the native version?
   > 
   > [incubator-mxnet/src/c_api/c_api.cc](https://github.com/apache/incubator-mxnet/blob/fdbc433ffb29c3442b523d32d59f4b44989eac7b/src/c_api/c_api.cc#L130)
   > 
   > Line 130 in [fdbc433](/apache/incubator-mxnet/commit/fdbc433ffb29c3442b523d32d59f4b44989eac7b)
   > 
   >  int MXGetGPUCount(int* out) {
   
   I think we should add a new formal python API that expose MXGetGPUCount(int* out), so all examples can use it.
   This PR is a quick patch for those examples.

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