Commit ac09ed56 authored by Yuxin Wu's avatar Yuxin Wu

fix GPUUtilTracker

parent 0db4e3df
......@@ -37,7 +37,7 @@ class GPUUtilizationTracker(Callback):
if env is None:
logger.warn("[GPUUtilizationTracker] Both devices and CUDA_VISIBLE_DEVICES are None! "
"Will monitor all visible GPUs!")
self._devices = list(range(get_nr_gpu()))
self._devices = list(map(str, range(get_nr_gpu())))
else:
self._devices = env.split(',')
else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment