nudles commented on a change in pull request #728:
URL: https://github.com/apache/singa/pull/728#discussion_r438182223
##########
File path: python/singa/device.py
##########
@@ -106,17 +106,21 @@ def create_cuda_gpus(num):
return singa.Platform.CreateCudaGPUs(num)
-def create_cuda_gpu(set_default=False):
+Device.default_gpu_device = None
Review comment:
add
`global default_gpu_device` inside the function `create_cuda_gpu():`
----------------------------------------------------------------
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:
[email protected]