diff options
author | 2016-04-19 16:36:49 -0800 | |
---|---|---|
committer | 2016-04-19 17:44:41 -0700 | |
commit | 43fc42b7052b2bc47040ad85049290387d6dc2e8 (patch) | |
tree | 255bbaeff0be22e1ab8acf17c78de923d9ef3cd0 /tensorflow/core/util/tensor_slice_writer.h | |
parent | e8beb7e6436c2d8f511f53749733b7762ae3d896 (diff) |
Rollback of "Change tensorflow code to use proto_text for DebugString andS hortDebugString"
calls, for call sites that are needed on android.
Also changed protobuf.h to use MessageLite.
Change: 120289807
Diffstat (limited to 'tensorflow/core/util/tensor_slice_writer.h')
-rw-r--r-- | tensorflow/core/util/tensor_slice_writer.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tensorflow/core/util/tensor_slice_writer.h b/tensorflow/core/util/tensor_slice_writer.h index 4f7be6896f..d3ae7754af 100644 --- a/tensorflow/core/util/tensor_slice_writer.h +++ b/tensorflow/core/util/tensor_slice_writer.h @@ -33,7 +33,6 @@ 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 { @@ -98,7 +97,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()) << ProtoShortDebugString(ssm); + CHECK_EQ(name, ssm.name()) << ssm.ShortDebugString(); TensorShape ssm_shape(ssm.shape()); if (!shape.IsSameSize(ssm_shape)) { return errors::Internal("Mismatching shapes: existing tensor = ", |