Skip to content

Commit 30cd6a6

Browse files
committed
Pass debug flags to NeutronConverter
1 parent 5f328e2 commit 30cd6a6

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

backends/nxp/backend/neutron_converter_manager.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,13 @@ def convert(
9595
if hasattr(cctx.compilationOpts, "useNewFlowNeutronC"):
9696
cctx.compilationOpts.useNewFlowNeutronC = use_new_flow_neutron_c
9797

98+
# Neutron-C debugging outputs
99+
cctx.compilationOpts.verbose = True
100+
cctx.compilationOpts.keepGraphs = True
101+
cctx.compilationOpts.dumpAfterOptimize = "optimized_model.tflite"
102+
cctx.compilationOpts.dumpAfterExtract = "extracted_model.tflite"
103+
cctx.compilationOpts.dumpMicrocode = True
104+
98105
# Try to use multiprocessing for isolation, but fall back to direct execution
99106
# if the environment doesn't support it (e.g., in sandcastle/build environments)
100107
try:

0 commit comments

Comments
 (0)