
Contents
More
Many users have difficulties to write onnx graphs.Many packages tries to symplify it either by implementingtheir own api very close to onnx operators(sklearn-onnx,tf2onnx,spox,onnx-script).This contribution tries a different approach by implementinga numpy API for ONNX. It does not cover everything numpyor ONNX can do but it can easily be used to defineloss functions for example without knowing too much about ONNX.
Note
control flow
The first version (onnx==1.15) does not support control flow yet (test and loops).There is no easy syntax for that yet and the main challenge is to deal with local context.
You readDifficulty to implement an Array API for ONNX as well.