Browse Source

fix nullptr problem

tags/v1.1.0
Bairong 5 years ago
parent
commit
8bf92dba21
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      mindspore/ccsrc/debug/draw.cc

+ 5
- 1
mindspore/ccsrc/debug/draw.cc View File

@@ -421,7 +421,11 @@ static void DrawValueNode(Graphviz *const graph_obj, const ValueNodePtr &node) {
graph_obj->buffer() << "<br/>";
}
graph_obj->buffer() << attr.first << " ";
graph_obj->buffer() << attr.second->ToString();
if (attr.second == nullptr) {
graph_obj->buffer() << " ";
} else {
graph_obj->buffer() << attr.second->ToString();
}
i++;
}
}


Loading…
Cancel
Save