From 7a4d008a18d92586671251a48d4803b77d3f23a3 Mon Sep 17 00:00:00 2001 From: lvliang Date: Fri, 25 Dec 2020 14:56:21 +0800 Subject: [PATCH] delete-tensor-id-print-in-to-string --- mindspore/core/ir/tensor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mindspore/core/ir/tensor.cc b/mindspore/core/ir/tensor.cc index 1491c74e10..8107322b93 100644 --- a/mindspore/core/ir/tensor.cc +++ b/mindspore/core/ir/tensor.cc @@ -553,7 +553,7 @@ std::string Tensor::ToStringInternal(int limit_size) const { std::ostringstream buf; auto dtype = Dtype(); MS_EXCEPTION_IF_NULL(dtype); - buf << "Tensor(id=" << id_ << ", shape=" << ShapeToString(shape_) << ", dtype=" << dtype->ToString() << ", value="; + buf << "Tensor(shape=" << ShapeToString(shape_) << ", dtype=" << dtype->ToString() << ", value="; if (limit_size <= 0 || DataSize() < limit_size) { // Only print data for small tensor. buf << ((data().ndim() > 1) ? '\n' : ' ') << data().ToString(data_type_, shape_, false);