From looking at the file keras/utils/multi_gpu_utils.py
in tensorflow GitHub repository, I could see that given that you specified that you want to use x
GPUs, it will automatically allocate the GPU IDs from range(x)
, i.e., 0, 1, 2, ..., x - 1
.
I need to use GPUs 4, 5, 6 ,7
, since the first 4 GPUs are already working on another task. Is there a way to specify it?