Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/tensorflow/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 无法在raspberry pi 3上运行load_模型(keras)_Python_Tensorflow_Machine Learning_Raspberry Pi_Keras - Fatal编程技术网

Python 无法在raspberry pi 3上运行load_模型(keras)

Python 无法在raspberry pi 3上运行load_模型(keras),python,tensorflow,machine-learning,raspberry-pi,keras,Python,Tensorflow,Machine Learning,Raspberry Pi,Keras,尝试加载模型“small_model.h5”时遇到错误 代码如下 small_model = load_model('small_model.h5') 错误消息如下所示 AttributeError module 'tensorflow' has no attribute 'global_variables' 我试着升级tensorflow和keras,但没有效果。此外,我还尝试了使用 small_model = 'small_model.h5' small_modl = h5py.File

尝试加载模型“small_model.h5”时遇到错误 代码如下

small_model = load_model('small_model.h5')
错误消息如下所示

AttributeError module 'tensorflow' has no attribute 'global_variables'
我试着升级tensorflow和keras,但没有效果。此外,我还尝试了使用

small_model = 'small_model.h5'
small_modl = h5py.File(small_model,'r')
而且没有帮助

你知道怎么解决这个问题吗? 提前谢谢。

请参阅。。。和