Skip to content

Commit bd1537b

Browse files
committed
Pass debug flags to NeutronConverter
1 parent b063f50 commit bd1537b

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
@@ -94,6 +94,13 @@ def convert(
9494
cctx.compilationOpts.dumpKernelSelectionCode = self.dump_kernel_selection_code
9595
cctx.compilationOpts.useNewFlowNeutronC = use_new_flow_neutron_c
9696

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

0 commit comments

Comments
 (0)