aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/framework/tensor_shape.cc
diff options
context:
space:
mode:
authorGravatar Geoffrey Irving <geoffreyi@google.com>2016-01-20 09:53:21 -0800
committerGravatar Manjunath Kudlur <keveman@gmail.com>2016-01-20 10:38:46 -0800
commitc878ce6ae549a72dbdbd2c41f33fa3dec75bb555 (patch)
treed259ca4b3afcb0c9f646d921aa6dc153b97360c2 /tensorflow/core/framework/tensor_shape.cc
parentc8eaac926c929e07ac8db69f67803a2223ff2d93 (diff)
Change DebugString behavior to ShortDebugString
The old behavior of DebugString is needlessly verbose and is quite confusing for scalar shapes (it produced the empty string). Now DebugString is the same as ShortDebugString. A future commit will remove ShortDebugString. Change: 112590646
Diffstat (limited to 'tensorflow/core/framework/tensor_shape.cc')
-rw-r--r--tensorflow/core/framework/tensor_shape.cc6
1 files changed, 0 insertions, 6 deletions
diff --git a/tensorflow/core/framework/tensor_shape.cc b/tensorflow/core/framework/tensor_shape.cc
index 8d4dfb2dbb..78c8b5709d 100644
--- a/tensorflow/core/framework/tensor_shape.cc
+++ b/tensorflow/core/framework/tensor_shape.cc
@@ -149,12 +149,6 @@ TensorShapeIter TensorShape::end() const {
}
string TensorShape::DebugString() const {
- TensorShapeProto proto;
- AsProto(&proto);
- return proto.ShortDebugString();
-}
-
-string TensorShape::ShortDebugString() const {
return strings::StrCat(
"[", str_util::Join(gtl::ArraySlice<int64>(dim_sizes_), ","), "]");
}