属性错误:模块';tensorflow.python.framework.ops';没有属性';注册软件&x27;
我使用的是TensorFlow 2.1.0-dev20191125 不幸的是,我无法编译一个简单的示例,错误如下: AttributeError:module'tensorflow.python.framework.ops'没有 属性“RegisterShape” 我的源代码:属性错误:模块';tensorflow.python.framework.ops';没有属性';注册软件&x27;,python,tensorflow,keras,Python,Tensorflow,Keras,我使用的是TensorFlow 2.1.0-dev20191125 不幸的是,我无法编译一个简单的示例,错误如下: AttributeError:module'tensorflow.python.framework.ops'没有 属性“RegisterShape” 我的源代码: from tensorflow.python.framework import ops as _ops _ops.RegisterShape("GRUBlockCell")(None) 是否安装错误? TF< /COD
from tensorflow.python.framework import ops as _ops
_ops.RegisterShape("GRUBlockCell")(None)
是否安装错误?<代码> TF< /COD>?< /P> < P>核>代码> OP> <代码>的形状函数通过代码> RealStErthOP(…)…SetShapeFn(…)< /> >移动到C++。因此,您可能必须首先在
C++
中创建/注册您的操作
详细指南可在官方公告中找到