You’ve recently been using the version of inf.0. The following error occurred while running the program.
Failed to get convolution algorithm. This is probably because cuDNN failed to initialize
At first, it was suspected that CUDA and cudnn were configured incorrectly (version matching is required). After trial and error, there is still this error
from tensorflow.compat.v1 import ConfigProto
from tensorflow.compat.v1 import InteractiveSession
config = ConfigProto()
config.gpu_options.allow_growth = True
session = InteractiveSession(config=config)
It means to allocate GPUs on demand
the main reason is that my image is relatively large and consumes more GPU resources. But my graphics card (rtx2060) has only 6GB memory, so this error will appear. This error prompt is very misleading, which makes people obsess about the versions of CUDA and cudnn. Therefore, I’ll stick it here to prevent future generations from repeating the same mistakes.
reference resources:
https://github.com/tensorflow/tensorflow/issues/24828
Similar Posts:
- [Solved] Failed to create cublas handle: CUBLAS_STATUS_ALLOC_FAILED
- ImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory [Solved]
- [Solved] Could not create cudnn handle: CUDNN_STATUS_INTERNAL_ERROR
- ImportError: DLL load failed: The specified module could not be found
- Failed to get convolution algorithm. This is probably because cuDNN failed to initialize
- AttributeError: module ‘tensorflow’ has no attribute ‘Session’
- Error in calling GPU by keras or tensorflow: blas GEMM launch failed
- Tensorflow encountered importerror: could not find ‘cudart64_ 100. DLL ‘error resolution
- [Solved] yolov3 Error: cuda error: out of memory darknet: ./src/cuda.c:36: check_error: Assertion `0′ failed.
- ModuleNotFoundError: No module named ‘_pywrap_tensorflow_internal’ [How to Solve]