microsoft / microsoft/onnxruntime
Compilation error when compiling ort_custom_op
Open
@askhade is already working on this.
Since Apr 21, 2022.
core runtime
- Dominant language
- C++
- Stars
- 21.9k
- Forks
- 4.2k
- Avg merge
- 4d 8h
- Merged PRs (30d)
- 179
Description
Describe the bug
compilation error when trying out the example given for custom operator in ort
Urgency
need to implement custom operator for onnxruntime, by end of week 22nd april
System information
- OS Platform and Distribution : ubuntu 20
- ONNX Runtime installed from (source or binary): binary
- ONNX Runtime version: 1.11.0
- Python version: None
- Visual Studio version (if applicable): None
- GCC/Compiler version (if compiling from source): not compiling onnxruntime, just the example, gcc 9.4.0
- CUDA/cuDNN version: None
- GPU model and memory: None
To Reproduce
https://github.com/onnx/tutorials/tree/main/PyTorchCustomOperator/ort_custom_op (main or master)
folder structure:
root_dir/
eigen-3.4.0/
onnxruntime-linux-x64-1.11.0/
CMakeLists.txt
custom_op.cc
custom_op_test.cc
custom_op.h
when compiling with the following commands
mkdir build
cd build
cmake ..
make
Screenshots

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.