aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/cc
diff options
context:
space:
mode:
authorGravatar Peng Yu <peng.yu@shopify.com>2018-07-31 16:02:15 -0400
committerGravatar Peng Yu <peng.yu@shopify.com>2018-07-31 16:02:15 -0400
commite3ef4b19627853e694a51ea0b1465a060caa8952 (patch)
tree5b6384855fe5ba645c45bb9445c6684a74382171 /tensorflow/cc
parentc5fcae3d5c632069a57ef1374e628d25be90e563 (diff)
Add extra log for failing to load variable purpose
Diffstat (limited to 'tensorflow/cc')
-rw-r--r--tensorflow/cc/saved_model/loader.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/tensorflow/cc/saved_model/loader.cc b/tensorflow/cc/saved_model/loader.cc
index 98be66a6ad..ca8cb8a9be 100644
--- a/tensorflow/cc/saved_model/loader.cc
+++ b/tensorflow/cc/saved_model/loader.cc
@@ -169,6 +169,7 @@ Status RunRestore(const RunOptions& run_options, const string& export_dir,
const string variables_index_path = io::JoinPath(
variables_directory, MetaFilename(kSavedModelVariablesFilename));
if (!Env::Default()->FileExists(variables_index_path).ok()) {
+ LOG(INFO) << "Falied to restore variables from " << variables_index_path;
LOG(INFO) << "The specified SavedModel has no variables; no checkpoints "
"were restored.";
return Status::OK();