microsoft / microsoft/onnxruntime-inference-examples

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.

Dominant language
C++
Stars
1.7k
Forks
414
Avg merge
1d 6h
Merged PRs (30d)
14

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.

Contributor guide

No contributing guide indexed for this repository

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.

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.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.