您的位置:首页 > 其它

tensorflow 出现ImportError: cannot import name graph_util

2017-12-22 10:29 931 查看
from tensorflow.python.framework import graph_util

此句出现错误

ImportError: cannot import name graph_util

将此句修改为

CHANGE
from `tensorflow.python.framework import graph_util`
TO
from `tensorflow.python.client import graph_util`


There is a commit now present in the tensorflow master to move graph_util from client to framework, so this workaround should not be required in the near future.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  tensorflow