MCPcopy Create free account
hub / github.com/pytorch/executorch / debug_fail

Function debug_fail

backends/arm/common/debug.py:69–79  ·  view source on GitHub ↗
(
    node,
    graph_module,
    tosa_graph: Optional[ts.TosaSerializer] = None,
    path: Optional[str] = None,
)

Source from the content-addressed store, hash-verified

67
68
69def debug_fail(
70 node,
71 graph_module,
72 tosa_graph: Optional[ts.TosaSerializer] = None,
73 path: Optional[str] = None,
74):
75 logger.warning("Internal error due to poorly handled node:")
76 if tosa_graph is not None and path:
77 debug_tosa_dump(tosa_graph.serialize(), path)
78 logger.warning(f"Debug output captured in '{path}'.")
79 debug_node(node, graph_module)

Callers 1

_preprocess_moduleMethod · 0.90

Calls 3

debug_tosa_dumpFunction · 0.85
debug_nodeFunction · 0.85
serializeMethod · 0.45

Tested by

no test coverage detected