北京大学曹建老师的TensorFlow课程中运行循环神经网络的例子字母预测onehot_1pre1中报错‘NoneType‘ object has no attribute ‘dtype‘的解决方案
在学习北京大学曹建老师的TensorFlow课程中运行循环神经网络的例子字母预测onehot_1pre1时,报错’NoneType’ object has no attribute ‘dtype’。查看错误来源是fit函数出现了问题。在网上搜索后发现是由于Tensorflow版本和Numpy版本兼容性导致的错误。
原创
2023-04-21 14:08:07 ·
149 阅读 ·
0 评论