Categories
Misc

Serialize a model in a file

Hello, i am using tensorflow-addons API for a machine translation project.

I want to load my models and do predictions without train again them.

My architecture is Encoder – Decoder with Bahdanau Attention mechanism.

When i try to serialize 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 ?

submitted by /u/mdsoft6
[visit reddit] [comments]

Leave a Reply

Your email address will not be published. Required fields are marked *