** TypeError:can can can pickle tensorflow.python.client._pywrap_tf_session.tf_operation对象**
我正在使用TensorFlow-Addons API进行机器翻译项目。
我想加载模型并进行预测,而无需再次训练。
我的架构是编码器 - 使用Bahdanau注意机制解码器。
当我尝试使用 dill 模块序列化时,文件中的编码器和解码器对象,我会收到此错误:
typeerror:cockle tensorflow.pypython.client._pywrap_tf_tf_session.tf_session.tf_operation.tf_operation.tf_operation对象
如何解决这个问题?
I am using Tensorflow-addons API for a machine translation project.
I want to load my models and do predictions without train them again.
My architecture is Encoder - Decoder with Bahdanau Attention mechanism.
When I try to serialize, with dill module, the encoder and decoder objects in a file and I get this error :
TypeError: can't pickle tensorflow.python.client._pywrap_tf_session.TF_Operation objects
How can I resolve this ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论