Saved TF1.x model for TF2.x predict?

I found some model files trained using TF1.x a few years ago. Will these models still work correctly with the predict fuction in TF2.x? Please explain the reasons too. Thanks.

Hi kdlin1 there shall be no compatibility issue this way around.

In their blog What’s coming in TensorFlow 2.0, the Tensorflow team wrote:

Additionally, SavedModels or stored GraphDefs will be backwards compatible. SavedModels saved with 1.x will continue to load and execute in 2.x.

You can learn more on TF 1.x vs TF2.x reading Migrate from TensorFlow 1.x to TensorFlow 2 and Migrate the SavedModel workflow for example.

1 Like