PyCUDA 'invalid resource handle' when Tensorflow model is loaded

this may be of interest