**TypeError: can't pickle tensorflow.python.client._pywrap_tf_session.TF_Operation objects**

141 Views Asked by At

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 ?

0

There are 0 best solutions below