From 3883578ebff0e8f901386d6f2b5870de517de4a1 Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Thu, 21 Apr 2016 10:08:01 -0800 Subject: Change tensorflow code to use proto_text for DebugString and ShortDebugString calls, for call sites that are needed on android. Also changed protobuf.h to use MessageLite. Change: 120464266 --- tensorflow/core/util/tensor_slice_writer.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tensorflow/core/util/tensor_slice_writer.h') diff --git a/tensorflow/core/util/tensor_slice_writer.h b/tensorflow/core/util/tensor_slice_writer.h index d3ae7754af..4f7be6896f 100644 --- a/tensorflow/core/util/tensor_slice_writer.h +++ b/tensorflow/core/util/tensor_slice_writer.h @@ -33,6 +33,7 @@ limitations under the License. #include "tensorflow/core/platform/macros.h" #include "tensorflow/core/platform/types.h" #include "tensorflow/core/util/saved_tensor_slice.pb.h" +#include "tensorflow/core/util/saved_tensor_slice.pb_text.h" #include "tensorflow/core/util/saved_tensor_slice_util.h" namespace tensorflow { @@ -97,7 +98,7 @@ Status TensorSliceWriter::Add(const string& name, const TensorShape& shape, // The same tensor has been registered -- we verify that the shapes and the // type agree. const SavedSliceMeta& ssm = sts_.meta().tensor(index); - CHECK_EQ(name, ssm.name()) << ssm.ShortDebugString(); + CHECK_EQ(name, ssm.name()) << ProtoShortDebugString(ssm); TensorShape ssm_shape(ssm.shape()); if (!shape.IsSameSize(ssm_shape)) { return errors::Internal("Mismatching shapes: existing tensor = ", -- cgit v1.2.3