Checkpointing keras model: TypeError: can’t pickle _thread.lock objects
When saving a Lambda layer, the arguments passed in will also be saved. In this case, it contains two tf.Tensors. It seems that Keras does not support serializing tf.Tensor in the model config right now. However, numpy arrays can be serialized without problem. So instead of passing tf.Tensor in arguments, you can pass in numpy … Read more