MCPcopy Create free account
hub / github.com/NVIDIA/DALI / FormatStack

Function FormatStack

dali/pipeline/operator/error_reporting.cc:49–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47
48
49std::string FormatStack(const std::vector<PythonStackFrame> &stack_summary, bool include_context) {
50 std::stringstream s;
51 for (auto &frame_summary : stack_summary) {
52 s << " File \"" << frame_summary.filename << "\", line " << frame_summary.lineno << ", in "
53 << frame_summary.name << "\n";
54 // Python doesn't report empty lines
55 if (include_context && frame_summary.line.size()) {
56 s << " " << frame_summary.line << "\n";
57 }
58 }
59 return s.str();
60}
61
62[[noreturn]] void PropagateError(ErrorInfo error) {
63 try {

Callers 2

GetMessageMethod · 0.85
GetErrorContextMessageFunction · 0.85

Calls 2

strMethod · 0.80
sizeMethod · 0.45

Tested by 1

GetMessageMethod · 0.68