Hello there, first post here, so please let me know if there is a specific format I should post in or if there is more information you need to be able to comment.
I’m currently trying to train a CNN with help from my GPU. For that I followed the installation guide from the tensorflow documentation: Install TensorFlow with pip , except installing MiniConda because I’m using Anaconda.
This worked fine, my GPU is detected by tensorflow, but whenever I try to import something from keras, I get the error mentioned in the title of the post. So for example when I’m importing EarlyStopping like this from tensorflow.keras.callbacks import EarlyStopping
it throws the error: ImportError: cannot import name ‘type_spec_registry’ from ‘tensorflow.python.framework’ (C:\Users\USER\anaconda3\envs\tf\lib\site-packages\tensorflow\python\framework_init_.py)
I’m not sure why this happens. I’m using tensorflow version 2.10.1, installed CUDA 11.2, cuDNN 8.1 and python 3.9.16.
If anyone knows something about this, please share any info!