在使用TensorFlow-GPU==2.0.0时出现报错AttributeError: 'NoneType' object has no attribute 'dtype'
在慕课的“人工智能实践:Tensorflow笔记”课程中,第6讲循环神经网络 6.6字母预测one_hot
history = model.fit(x_train, y_train, batch_size=32, epochs=100, callbacks=[cp_callback])
报错,是因为numpy的版本太高了。重新下载更低版本的numpy
解决方法:
pip install numpy==1.8.0
需要先删除已经安装的numpy库
pip uninstall numpy