-
Notifications
You must be signed in to change notification settings - Fork 0
Debug tools
yaitaissa edited this page Aug 22, 2024
·
1 revision
A debug mode is available with the package acetone-nnet
.
The debug_keras.py (resp. debug_onnx.py) file presents some functions to help create models adapted to the ACETONE's debug mode.
The user needs to call the function debug_keras
(resp. debug_onnx
), with the original model and an appropriate datset as parameters, and the function returns the modified model, a list of integers corresponding to the idince of the layers from which the outputs are extracted, and the list of the outputs.
The debug_tools.py file presents some useful functions, such as compare_result
, which take two list of array as inputs, compare them and resume the differencies.
Cf. debug_example.py for a more precise example.