The invention discloses an automatic debugging
system and method for
deep learning compiler numerical errors, and the
system comprises a model analysis module, a
semantic matching module, a tracking module and a
verification module, the analysis module receives and analyzes a defect model with compilation errors, carries out the extraction of the input of the defect model, sub-functions, and operators of each sub-function, and carries out the
verification of the compilation errors. Constructing a symbolic calculation graph and an index table before and after optimization of the defect model; the
semantic matching module performs hash
processing on each node in the symbolic calculation graph, matches equivalent nodes before and after optimization by comparing the approximation degree of hash values between the nodes, and generates a matching relationship between the nodes and the equivalent nodes; the tracking module compares the data streams of the models before and after optimization according to the matching relationship, generates an error cumulant diagram by tracking the generation and propagation process of errors, and locates the
modes causing the errors and
compiler optimization transformation causing mode
rewriting; and the inspection module inspects the
correctness of the positioning result and finally outputs root information after inspection. According to the method, each computing node of the neural
network model is quantified into a hash value capable of measuring the distance, compared with an existing
positioning technology, the method can better adapt to the scene of a complex
deep learning model, and compared with an incremental debugging technology, the error positioning speed and accuracy are remarkably improved.