in src/huggingface_inference_toolkit/utils.py [0:0]
def get_device():
"""
The get device function will return the device for the DL Framework.
"""
gpu = _is_gpu_available()
if gpu:
return 0
else:
return -1