This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
zzy34407230
/
mindspore2022
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
22
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
Browse Source
add 'The function call stack:' to the begin of DumpSourceLines print
tags/v1.6.0
huanghui
4 years ago
parent
b3780ddfd7
commit
bcbd9fd26e
1 changed files
with
4 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-2
mindspore/core/utils/trace_base.cc
+ 4
- 2
mindspore/core/utils/trace_base.cc
View File
@@ -146,11 +146,13 @@ std::string DumpSourceLines(const AnfNodePtr &node) {
return "";
}
std::ostringstream oss;
oss << "\n";
for (auto &src_info : vec_source) {
oss << src_info;
}
return oss.str();
if (oss.str().empty()) {
return "";
}
return "\nThe function call stack:\n" + oss.str();
}
std::string DumpSourceLines(AnfNode *node) {
Write
Preview
Loading…
Cancel
Save