tensorlayer / TensorLayer

Deep Learning and Reinforcement Learning Library for Scientists and Engineers
http://tensorlayerx.com
Other
7.31k stars 1.61k forks source link

How can I save tensorlayer's customized model as saved_model format in tensorflow2.x and tensorlayer2.x? #1097

Open cy1996go opened 4 years ago

cy1996go commented 4 years ago

New Issue Checklist

Issue Description

In tensorflow2.x, there is no session to build a graph and API like tf.saved_model.builder to save as 'saved_model' format. I know there there is an API tf.saved_model.save can save a model as 'saved_model' format, but it is only compatible with 'tf.keras' model which have trackable object. This issue really stop me from using tensorflow serving for deployment. How can I solve this problem?