tensorflow.python.framework.errors_impl.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]
2021-09-24 15:31:45.989272: W tensorflow/core/kernels/data/generator_dataset_op.cc:103] Error occurred when finalizing GeneratorDataset iterator: Failed precondition: Python interpreter state is not initialized. The process may be terminated.
Googled the blog and said that the batchsize was set too large, resulting in insufficient memory. So I changed the batchsize from 16 to 4, and then to 1, and I still got this error.
I don’t think the model I’m running is very big, so why is there this problem?
Solution!
It is not set properly when calling the GPU
Just add these two lines of code at the top of the code
config = tf.compat.v1.ConfigProto(gpu_options=tf.compat.v1.GPUOptions(allow_growth=True)) sess = tf.compat.v1.Session(config=config)
Read More:
- [Solved] MindSpore Error: “GeneratorDataset’s num_workers=8, this value is …”
- Iterator calling next method: Stopiteration [How to Solve]
- Error lnk2038: detected “_ ITERATOR_ DEBUG_ Mismatched ‘level’ value of ‘0’
- [Solved] elasticsearch.bat Running Flashback.: Error occurred during initialization of VM, Error occurred during initializatio
- [Solved] Execution failed for task ‘:app:processDebugResources‘. > A failure occurred while executing com.and
- IIS 404 The page cannot be displayed because an internal server error has occurred
- Error occurred during initialization of VM Could not reserve enough space for 1572864KB object heap
- Eclipse an error has occurred [How to Solve]
- [Android Error] java.lang.RuntimeException: An error occurred while executing doInBackground()
- [AWS] Solve Error: An error occurred (AccessDenied) when calling the CreateMultipartUpload operation: Access Denied
- [Solved] An error occurred while processing your request…enable the Development environment by setting …
- [Solved] Neo4j Error: Error occurred during initialization of VM Incompatible minimum and maximum heap sizes spec
- [Solved] Error occurred during connect to primary: exception 3000301: Connection could not be established
- [Solved] Faceswap Error: CRITICAL An unexpected crash has occurred.You MUST provide this file if seeking assistan
- [Solved] ASP Website Error: An error occurred on the server when processing the URL.
- How to Solve Error: EOF occurred in violation of protocol (_ssl.c:877)
- [Solved] Internal error occurred: failed calling webhook “validate.nginx.ingress.kubernetes.io”:
- Impala Find Error: InternalException: Memory limit exceeded: Error occurred on backend
- EsgynDB Troubleshooting-ERROR[8837] Internal error occurred.
- [Solved] Error from server (InternalError): error when creating “ingress.yaml”: Internal error occurred: fail