Fix dump failure when const node is string type

Merge pull request  from TinaMengtingZhang/bugfix_dump_fail_with_summaryop
This commit is contained in:
i-robot 2021-06-26 02:23:06 +00:00 committed by Gitee
commit 9886aa613e
1 changed files with 1 additions and 1 deletions
mindspore/ccsrc/debug/data_dump

View File

@ -177,7 +177,7 @@ void E2eDump::DumpSingleAnfNode(const AnfNodePtr &anf_node, const size_t output_
bool trans_flag, std::map<std::string, size_t> *const_map, const Debugger *debugger) {
MS_EXCEPTION_IF_NULL(anf_node);
auto &dump_json_parser = DumpJsonParser::GetInstance();
if (!anf_node->isa<Parameter>() && !anf_node->isa<ValueNode>()) {
if ((!anf_node->isa<Parameter>() && !anf_node->isa<ValueNode>()) || IsValueNode<StringImm>(anf_node)) {
return;
}
std::string node_name = anf_node->fullname_with_scope();