OK, thanks. Could you try to narrow down the location of the error?
You said the error is thrown in some conv layers of the densenet.
Could you check, if all conv layers are on the GPU?
Did you somehow manipulated the conv layers or changed them in another way?