I also have this error during using the LSTM in TensorFlow. But when I reinstall numpy, a warning "tensorflow-macos 2.5.0 requires numpy~=1.19.2, but you have numpy 1.21.2 which is incompatible." shows. I can only install numpy 1.21.2 through pip.
Post
Replies
Boosts
Views
Activity
Uninstall your numpy, and conda install numpy~=1.19.5, this will work.
numpy 1.20+ is not compatible with this tensorflow.
https://github.com/tensorflow/tensorflow/issues/47691