get_device() command gives you the supported device to the onnxruntime.
For CPU and GPU there is different runtime packages are available.
Currently your onnxruntime environment support only CPU because you have installed CPU version of onnxruntime.
If you want to build onnxruntime environment for GPU use following simple steps.
Step 1: uninstall your current onnxruntime
>> pip uninstall onnxruntime
Step 2: install GPU version of onnxruntime environment
>>pip install onnxruntime-gpu
Step 3: Verify the device support for onnxruntime environment
>> import onnxruntime as rt
>> rt.get_device()
'GPU'
Step 4: If you still encounter any issue please check with your cuda and CuDNN versions, that must be compatible to each other.
Please refer this link here to understand about the version compatibility between cuda and CuDNN.
python -c "import onnxruntime as ort;print(ort.get_device())"
– Pentstemon