setUpNet DNN module was not built with CUDA backend; switching to CPU error

You need to use the latest commits from the 4.x branch from both repos which have updates for compatibility with the latest versions of CUDA and cuDNN which were released after 4.10.