Failed to get convolution algorithm. This is probably because cuDNN failed to initialize
2020-04-24 11:02
1226 查看
keras使用gpu加速训练时出现了以下问题
UnknownError (see above for traceback): Failed to get convolution algorithm. This is probably because cuDNN failed to initialize, so try looking to see if a warning log message was printed above. [[node conv1_9/convolution (defined at E:\anaconda\lib\site-packages\keras\backend\tensorflow_backend.py:3335) ]] [[node metrics_6/acc/Mean (defined at E:\anaconda\lib\site-packages\keras\backend\tensorflow_backend.py:1367) ]]
搜到的解决方法1:
import os os.environ['CUDA_VISIBLE_DEVICES'] = '/gpu:0'
未能解决问题
搜到的方法2:
import tensorflow as tf import keras config = tf.ConfigProto() config.gpu_options.allow_growth = True keras.backend.tensorflow_backend.set_session(tf.Session(config=config))
解决问题
- 点赞
- 收藏
- 分享
- 文章举报
相关文章推荐
- 解决Failed to get convolution algorithm. This is probably because cuDNN failed to initialize
- Failed to get convolution algorithm. This is probably because cuDNN failed to initialize
- Failed to get convolution algorithm. This is probably because cuDNN failed to initialize
- UnknownError: Failed to get convolution algorithm. This is probably because cuDNN failed to
- tensorflow.python.framework.errors_impl.UnknownError: Failed to get convolution algorithm. This is p
- Error: Failed to fetch platform ios Probably this is either a connection problem, or platform speci
- Failed to get local InetAddress for VMID. This is unlikely to matter.
- Error: Failed to fetch plugin E:_My_File______workMyCodemyCodecordova-workspaceplugman-testMyMath via registry. Probably this is either a connection problem, or plugin spec is incorrect.
- This application has failed to start because the application configuration is incorrect
- The call to LoadLibrary(YourExtensionName) failed, Win32 error 0n14001, “This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.”
- Failed to get local InetAddress for VMID. This is unlikely to matter.
- Failed to load map. Error contacting Google servers. This is probably an authentication issue
- QT:This application has failed to start because the application configuration is incorrect...
- This is probably because there is no OLE editor registered against the type of file you were trying to open.
- The service cannot be activated because it does not support ASP.NET compatibility. ASP.NET compatibility is enabled for this application. Turn off ASP.NET compatibility mode in the web.config or add the AspNetCompatibilityRequirements attribute to the ser
- This application failed to start because it could not find or load the Qt platform plugin
- This application failed to start because it could not find or load the Qt platforms plugins
- PowerShell: 如何解决File **.ps1 cannot be loaded because the execution of scripts is disabled on this system. Please see "get- help about_sig" for more de
- Science Says This Is How to Make the Perfect First Impression You only get one chance for a first i
- This application failed to start because it could not find or load the Qt platform plugin "xcb".