The invention discloses a
deep learning framework-oriented program slice defect positioning method, which comprises the following steps of: inputting an original failure
test case causing defects, and extracting a target variation point; a variation rule oriented to a
deep learning framework is designed; generating a
mutation test case which is highly similar to the
mutation execution path of the original failure
test case and rejects an error statement; historical iteration data and the state of a current test case are comprehensively considered, the most suitable
mutation operator is selected recursively, and code elements containing errors are gradually eliminated; executing the original failure test case and the mutation test case, and collecting coverage information in the execution process; and according to the collected coverage information and the passing / failure state of the suddenly changed test case, carrying out defect positioning by using a defect positioning
algorithm based on a
frequency spectrum, and outputting an accurate defect positioning result. According to the method, the defects in the codes in the program slices can be quickly locked and repaired, and the overall reliability of the
deep learning framework is effectively improved.