【tensorflow】OP

【tensorflow】OP,第1张

【tensorflow】OP

如下代码片段

outputs = tf.keras.layers.Bidirectional(tf.keras.layers.GRU(units=half_depth, use_bias=False, return_sequences=True,
            return_state=False))(rnn_input)

OP_REQUIRES failed at variable_ops.cc:104 Already exists: Resource
在使用tensorflow 1.15版本执行gru时,抛出大量的的这个错误。

因为代码比较老旧,使用低版本tensorflow 1.12 或者 tensorflow 1.14时就没有问题了

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zaji/5701102.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-17
下一篇 2022-12-17

发表评论

登录后才能评论

评论列表(0条)

保存