I have been running a particular python script for some time. All of the script had been running perfectly fine (including in Jupyter) for many months before this. Now, some
When this happened to me, I just uploaded my notebook to google colab and it started working. It seems, though, that the issue is a bottleneck in compute/memory resources in training these big models, and places like colab have a lot more bandwidth than does your machine.
For macOS Versions of 12.0 and above, Tensorflow GPU isn't supported. So try this piece of code, it worked for me -
import os
os.environ['KMP_DUPLICATE_LIB_OK']='True'