vishaalkapoor commented on a change in pull request #13140: Refactor kvstore test URL: https://github.com/apache/incubator-mxnet/pull/13140#discussion_r231681960
########## File path: tests/python/gpu/test_device.py ########## @@ -19,35 +19,23 @@ import numpy as np import unittest import os +import logging + +from mxnet.test_utils import EnvManager shapes = [(10), (100), (1000), (10000), (100000), (2,2), (2,3,4,5,6,7,8)] keys = [1,2,3,4,5,6,7] num_gpus = len(mx.test_utils.list_gpus()) Review comment: nit: you can use mx.context.num_gpus() ---------------------------------------------------------------- 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
