[英]AttributeError: module 'tensorflow.python.framework.op_def_registry' has no attribute 'get_registered_ops'
I am trying to retrain the inception v3 model.我正在尝试重新训练 inception v3 model。
However, I got stuck by an error但是,我被一个错误卡住了
AttributeError: module 'tensorflow.python.framework.op_def_registry' has no attribute 'get_registered_ops' AttributeError:模块'tensorflow.python.framework.op_def_registry'没有属性'get_registered_ops'
in the tensorflow_hub native_module.py file.在 tensorflow_hub native_module.py 文件中。
Why do I get this error?为什么我会收到此错误?
missing_ops = graph_ops - set(op_def_registry.get_registered_ops().keys())
get_registered_ops()
has been removed in recent versions of. get_registered_ops()
在最新版本中已被删除。 Be sure to use tensorflow-hub>=0.7.0 to pick up on the black magic at https://github.com/tensorflow/hub/blob/v0.7.0/tensorflow_hub/native_module.py#L50一定要使用 tensorflow-hub>=0.7.0 在https://github.com/tensorflow/hub/blob/v0.7.0/tensorflow_hub/native_module.py#L50 学习黑魔法
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.