首页 > 解决方案 > Anaconda Environments cudnn scikit-learn nengo-dl problems

问题描述

My problems started this morning, I installed nengo-dl through 'conda install nengo-dl'. Then, I started a GridsearchCV that was working normally previously with the code I had using for days with no problem. Hours later, I perceived the Grid Search was going too slow, each epoch was taking more than 25s and I remember from the previous day, the same script, with the same database and the similar parameters were going more than 205 times faster. So, I canceled the script and started again to see if there were any warnings. And it shows:

'''2021-10-26 20:39:48.566865: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cudnn64_8.dll'; dlerror: cudnn64_8.dll not found
2021-10-26 20:39:48.566972: W tensorflow/core/common_runtime/gpu/gpu_device.cc:1835] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform.
Skipping registering GPU devices...
2021-10-26 20:39:48.567361: I tensorflow/core/platform/cpu_feature_guard.cc:142] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations:  AVX AVX2
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2021-10-26 20:39:48.922918: I tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc:185] None of the MLIR Optimization Passes are enabled (registered 2)'''

The system could no longer find the 'cudnn64_8.dll' I had installed previously and that was working yesterday. I tried reinstalling 'cudnn64_8.dll', but it did not solve the problem. I created a new environment in Anaconda. In this new environment, Spyder found 'cudnn64_8.dll', but scikit-learn, from which I use commands like train_test_split are not recognized in this new environment now, but it is recognized in the old environment (which does not find cudnn). I use windows 10. I tried restarting the computer, but it was useless. What can I do? Any help, please?

标签: pythonscikit-learnanacondaspyderenvironment

解决方案


推荐阅读