tensorflow 出现ImportError: cannot import name graph_util

来源:互联网 发布:淘宝p2p 编辑:程序博客网 时间:2024/06/07 18:50

from tensorflow.python.frameworkimport graph_util

此句出现错误

ImportError: cannot import name graph_util

将此句修改为

CHANGEfrom `tensorflow.python.framework import graph_util`TOfrom `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.


0 0
原创粉丝点击