diff options
author | Sukriti Ramesh <sukritiramesh@google.com> | 2017-05-24 15:58:18 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2017-05-24 16:01:34 -0700 |
commit | 059707c5af8db3895668d5d7efb0c5637bc7b434 (patch) | |
tree | c99c2bccf3bd7539575c155fb369c941af798ffe /tensorflow/contrib/session_bundle | |
parent | 791c25e3528a8a71543e6359143ebf273c4171ba (diff) |
Add an error message to the bundle-shim for SessionBundle deprecation.
PiperOrigin-RevId: 157049830
Diffstat (limited to 'tensorflow/contrib/session_bundle')
-rw-r--r-- | tensorflow/contrib/session_bundle/bundle_shim.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tensorflow/contrib/session_bundle/bundle_shim.cc b/tensorflow/contrib/session_bundle/bundle_shim.cc index c369e3e108..c48bca8661 100644 --- a/tensorflow/contrib/session_bundle/bundle_shim.cc +++ b/tensorflow/contrib/session_bundle/bundle_shim.cc @@ -363,6 +363,8 @@ Status LoadSessionBundleOrSavedModelBundle( return LoadSavedModel(session_options, run_options, export_dir, saved_model_tags, saved_model_bundle); } else if (IsPossibleExportDirectory(export_dir)) { + LOG(ERROR) << "Found possible SessionBundle in export directory. " + "SessionBundle is deprecated. Use SavedModel instead."; LOG(INFO) << "Attempting to up-convert SessionBundle to SavedModelBundle " "in bundle-shim from: " << export_dir; |