microsoft/onnxruntime-extensions

Public

mirrored fromhttps://github.com/microsoft/onnxruntime-extensionsAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
92f6b51106c9e9143c452e537cb5e41d2dcaa266

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

tutorials/cpp_custom_ops_tutorial.md

9lines · modepreview

# Making Custom Ops with C++

This is just an outline. Full instructions will be added later.

1. Clone and build the repo by following the Getting Stated instructions [here](https://github.com/microsoft/ort-customops#getting-started).
2. Create a kernel for your custom op in the /ocos/kernels directory. Create a .cc and .hpp file.
3. Write tests in the /test directory.

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)