forked from mindspore-Ecosystem/mindspore
!18845 Fix dump failure when const node is string type
Merge pull request !18845 from TinaMengtingZhang/bugfix_dump_fail_with_summaryop
This commit is contained in:
commit
9886aa613e
mindspore/ccsrc/debug/data_dump
|
@ -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…
Reference in New Issue