Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

c_cxx/customop seems code can't work in linux

Open
#408 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
28/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
cpp, python, ubuntu

Research direction

Start with the c_cxx/customop example and example.cc, then reproduce the issue on Ubuntu using onnxruntime-linux-x64-1.17.1.tgz. Check whether onnxruntime_lite_custom_op.h is available and whether the Python-created model can be loaded by the C++ example. Done means the example's Linux support and required package contents are clear.

Written by the indexing model from the issue text.

Description

Hi, Recently I want to use python to train a model and use c++ to load it, I find onxxruntime lib, and I find the example of c_cxx/customop seems fit my requirements, but when I use the exmple.cc to load the model by python, I find some problems. I run it on ubuntu, and download the release package "onnxruntime-linux-x64-1.17.1.tgz ", I found there is no onnxruntime_lite_custom_op.h in the linux version lib, only windows version has this file.I just want a simple demo which can load the model which is trained by python, and use the model to predict in c++, I am not very familiar with c++, could anyone support me, thank you very much.

Dominant language
C++
Stars
1.7k
Forks
418
PR merge metrics
No merged PRs in 30d

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

  • No Dockerfile or Docker Compose file
  • No pull request template
  • No 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.

More from microsoft/onnxruntime-inference-examples

All issues in microsoft/onnxruntime-inference-examples

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.