I’m using a pre-trained Inception network to get some GAN metrics, and I have the following code to move the model to a GPU for evaluation:
def __init__(self, ...):
    ...
    self._model = InceptionV3(...)
    if cuda.is_available():
        self._model.to('cuda')

When I run this code on an HPC, I get the following error:
RuntimeError: CUDA error: all CUDA-capable devices are busy or unavailable
Is there something wrong with how I’m moving the model to a GPU? This code should work even if I have an arbitrary number of GPUs right?