Supporting ONNX optimized models

definitely possible! Copied everything so that I can have full control