update onnx example to new api
2 files changed