onnx / tutorials

Tutorials for creating and using ONNX models
Apache License 2.0
3.39k stars 629 forks source link

ONNX custom OP uses deprecated functions #275

Open nrakltx opened 2 years ago

nrakltx commented 2 years ago

Ask a Question

Question

I am attempting to implement a custom op using CUDA kernels and started looking into existing guides and how-to's available. The simplest and easiest I could find exists on this repo, here. Notwithstanding this is the main E2E example for exporting custom ops in ORT, it seems to be using deprecated functions; Inside this file, functions such as GetTensorData are deprecated as per this, and such are some other functions from this tutorial.

Further information

Notes

Any additional information, code snippets.

yuslepukhin commented 2 years ago

Would you like to contribute and fix those? It would also be a good learning experience, as well as a good testing ground before the next release. The deprecation of the functions has not been released yet and you encounter these problems only if you build from source code.

Cc: @jcwchen