diff options
author | Kiril Gorovoy <kgorovoy@google.com> | 2017-01-13 17:49:20 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2017-01-13 18:07:40 -0800 |
commit | d06e6695cca01f9a10454adce210f0a55bf40a96 (patch) | |
tree | bbcccd75c8d51f06ed110c189bdce288f9f4e161 /tensorflow/contrib/session_bundle/bundle_shim.cc | |
parent | edb10c65b596410218cace319d7c1956684bd4eb (diff) |
Bug fix in SavedModel shim's named signature up-conversion for classification signatures, where the value was not actually being set.
Change: 144505027
Diffstat (limited to 'tensorflow/contrib/session_bundle/bundle_shim.cc')
-rw-r--r-- | tensorflow/contrib/session_bundle/bundle_shim.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tensorflow/contrib/session_bundle/bundle_shim.cc b/tensorflow/contrib/session_bundle/bundle_shim.cc index fd0ea9a2fb..9c7cdf192d 100644 --- a/tensorflow/contrib/session_bundle/bundle_shim.cc +++ b/tensorflow/contrib/session_bundle/bundle_shim.cc @@ -197,14 +197,13 @@ Status ConvertNamedSignaturesToSignatureDef(const Signatures& signatures, continue; } } - SignatureDef signature_def; const Signature signature = it_named_signature.second; if (IsRegressionSignature(signature)) { (*meta_graph_def->mutable_signature_def())[key] = BuildRegressionSignatureDef(signature.regression_signature()); } else if (IsClassificationSignature(signature)) { - (*meta_graph_def->mutable_signature_def())[key] = signature_def; - BuildClassificationSignatureDef(signature.classification_signature()); + (*meta_graph_def->mutable_signature_def())[key] = + BuildClassificationSignatureDef(signature.classification_signature()); } else { LOG(WARNING) << "Named signature up-conversion to SignatureDef is only supported " |