fix cuDNN build by readding line deleted in #1167