microsoft/onnxruntime-extensions
Publicmirrored fromhttps://github.com/microsoft/onnxruntime-extensionsAvailable
tutorials/cpp_custom_ops_tutorial.md
9lines · modecode
| 1 | # Making Custom Ops with C++ |
| 2 | |
| 3 | This is just an outline. Full instructions will be added later. |
| 4 | |
| 5 | 1. Clone and build the repo by following the Getting Stated instructions [here](https://github.com/microsoft/ort-customops#getting-started). |
| 6 | 2. Create a kernel for your custom op in the /ocos/kernels directory. Create a .cc and .hpp file. |
| 7 | 3. Write tests in the /test directory. |
| 8 | |
| 9 | To use the op in a tensorflow model, follow the [TF2ONNX Custom Ops Tutorial](https://github.com/microsoft/ort-customops/blob/main/tutorials/tf2onnx_custom_ops_tutorial.ipynb) |