解决UnknownError: Failed to get convolution algorithm. This is probably because cuDNN failed to initia
2020-05-11 04:09
1906 查看
解决UnknownError: 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. [Op:Conv2D]
使用Tensorflow2.0-GPU版本时调用卷积层报错 UnknownError: 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. [Op:Conv2D]
原因是使用单个GPU设备运行Tensorflow自动占满显存,导致cuDNN无法运行。
解决方案:限制tf的显存占用
gpus = tf.config.experimental.list_physical_devices('GPU') if gpus: try: #创建虚拟显卡 tf.config.experimental.set_virtual_device_configuration( gpus[0], [tf.config.experimental.VirtualDeviceConfiguration(memory_limit=4096)])#限制量/MB,4096为4G logical_gpus = tf.config.experimental.list_logical_devices('GPU') print(len(gpus), "Physical GPUs,", len(logical_gpus), "Logical GPUs") except RuntimeError as e: print(e)
参考资料
https://blog.csdn.net/jackhh1/article/details/102864524
自云 原创文章 1获赞 0访问量 24 关注 私信相关文章推荐
- UnknownError: Failed to get convolution algorithm. This is probably because cuDNN failed to
- 解决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
- Failed to get convolution algorithm. This is probably because cuDNN failed to initialize
- tensorflow.python.framework.errors_impl.UnknownError: Failed to get convolution algorithm. This is p
- tensorflow出现 this is probably because cuDNN failed to initialize, so try looking to see if a……问题
- Error: Failed to fetch platform ios Probably this is either a connection problem, or platform speci
- 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.”
- 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.
- blucesun 解决npm报错:Module build failed: TypeError: this.getResolve is not a function
- Failed to load map. Error contacting Google servers. This is probably an authentication issue
- Ios9.0 canOpenURL: failed for URL: "xx" - error:"This app is not allowed to query for scheme xx"
- 解决ERROR 1130: Host '192.168.1.3' is not allowed to connect to this MySQL server 方法
- Failed to get local InetAddress for VMID. This is unlikely to matter.
- ClickOnce报错的解决:VS 2010 RTM returns Error: "Cannot publish because a project failed to build"
- 解决win10(2080ti)+CUDA9.2+pytorch-gpu(RuntimeError: cuDNN error: CUDNN_STATUS_EXECUTION_FAILED)
- -canOpenURL: failed for URL: "wechat://" - error: "This app is not allowed to query for scheme wech
- This application has failed to start because the application configuration is incorrect
- mysql远程访问 登录ERROR 1130: is not allowed to connect to this MySQL server解决办法