microsoft / microsoft/onnxruntime

Compilation error when compiling ort_custom_op

Open
#11,290 1 comment 0 reactions 1 assignee View on GitHub

@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
image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.