Solved by ptrblck in post #2 
              
              
                Could you check, if this environment variable is set somewhere in your code? 
The line should e.g. look like this: 
os.environ["CUDA_VISIBLE_DEVICES"]="0"