diff --git a/mindspore/ccsrc/pipeline/pynative/pynative_execute.cc b/mindspore/ccsrc/pipeline/pynative/pynative_execute.cc index 9d9b2094af..f84834e33d 100644 --- a/mindspore/ccsrc/pipeline/pynative/pynative_execute.cc +++ b/mindspore/ccsrc/pipeline/pynative/pynative_execute.cc @@ -137,10 +137,10 @@ static std::string GetId(const py::object &obj) { } if (py::isinstance(to_process)) { auto type_ptr = py::cast(to_process); - return prefix + type_ptr->ToString(); + return "type" + type_ptr->ToString(); } if (py::isinstance(to_process)) { - return prefix + std::string(py::str(to_process)); + return "s" + std::string(py::str(to_process)); } if (py::isinstance(to_process)) { return prefix + std::string(py::str(to_process));