From 005e2020836efc939d288cee42f332eac5274e32 Mon Sep 17 00:00:00 2001 From: guohongzilong <2713219276@qq.com> Date: Mon, 13 Apr 2020 13:21:24 +0800 Subject: [PATCH] fix print content of mindspore.string --- mindspore/ccsrc/ir/dtype.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mindspore/ccsrc/ir/dtype.h b/mindspore/ccsrc/ir/dtype.h index 11099e460e..e3e2099b5e 100644 --- a/mindspore/ccsrc/ir/dtype.h +++ b/mindspore/ccsrc/ir/dtype.h @@ -51,7 +51,7 @@ class String : public Object { TypeId generic_type_id() const override { return kObjectTypeString; } TypePtr DeepCopy() const override { return std::make_shared(); } - std::string ToString() const override { return std::string("String:"); } + std::string ToString() const override { return std::string("String"); } std::string ToReprString() const override { return "string"; } std::string DumpText() const override { return "String"; } };