Expose tf.saved_model.load and make tf.saved_model.save non-experimental in v1
We can't expose tf.saved_model.load in v1 because there's already a symbol with that name. I've used tf.saved_model.load_v2 instead. There's plenty still to do, but after the proto move the format is stable and this is the API we want. tf.saved_model.save only works when executing eagerly, but makes sense to add to the v1 API to make upgrades simpler. This doesn't work for tf.saved_model.load due to the name conflict; in practice most v1 codebases will need to refer to it as tf.compat.v2.load if they want to run in v1 and v2. But it should have some stable symbol in v1 if v1/v2 codebases are going to rely on it. RFC: https://github.com/tensorflow/community/pull/34 PiperOrigin-RevId: 234894316
Loading
Please sign in to comment