Browse Source

Fix dump failed with StringImm node (i.e. summary op)

tags/v1.3.0
TinaMengtingZhang 4 years ago
parent
commit
3ec5c760d7
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      mindspore/ccsrc/debug/data_dump/e2e_dump.cc

+ 1
- 1
mindspore/ccsrc/debug/data_dump/e2e_dump.cc 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();


Loading…
Cancel
Save