The invention relates to a model compiling method and device,
computer equipment and a storage medium. The method comprises the following steps: performing analysis
processing on a target ONNX model to obtain model
feature data, and performing classification
processing on each operator type according to operator capability and a constraint
library to obtain a corresponding first target operator type and a corresponding second target operator type; performing
rewriting processing on each second target operator type according to the
rewriting strategy mode to obtain a corresponding rewritten second target operator type, and performing
verification and constraint check processing on each rewritten second target operator type to obtain a corresponding check result; and according to the operators corresponding to the first target operator types in the target ONNX model and the operators corresponding to the third target operator types in the target ONNX model, generating execution subgraph fragments of the
deep learning accelerators, and issuing the execution subgraph fragments to the corresponding
deep learning accelerators for compiling processing. By adopting the method, the compiling efficiency can be improved.