""" Converts onnx model into model.py file for easy editing. Resulting model.py file uses onnx.helper library to recreate the original onnx model. Constant tensors with more than 10 elements are saved into .npy files in location model/const#_tensor_name.npy Example usage: python -m onnxconverter_common.onnx2py my_model.onnx my_model.py """
python -m onnxconverter_common.onnx2py my_model.onnx my_model.py
https://xadupre.github.io/draft/mlprodict/tutorial/ex_python.html
https://xadupre.github.io/draft/mlprodict/i_ex.html
标签:onnx,onnxconverter,py,onnx2py,common,model From: https://www.cnblogs.com/sinferwu/p/17103076.html