I am currently migrating our app to Python 3.11.6. We updated to tensorflow==2.15.0 and numpy==1.26.4 . I am getting this error message: “NotImplementedError: numpy() is only available when eager execution is enabled”
I tried this solution which I found here in stackoverflow:
“I have the same issue when upgrade to TensorFlow V2.0. And it was solved by commenting out #from keras import backend as K
. And use import tensorflow.keras.backend as K
“
Thing is, I already changed the from keras import backend as K
to import tensorflow.compat.v1.keras.backend as K
. Could the Numpy issue be because of this use of v1?