-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What's the next step after build the onnxruntime from source code #359
Comments
It seems that "CTRL-C" will break the build process, cause incomplete build. |
Under the build/Linux/RelWithDebInfo/dist, there are two whl files: onnxruntime-0.1.5-cp35-cp35m-linux_x86_64.whl and onnxruntime-0.1.5-cp35-cp35m-manylinuxlinux1_x86_64.whl. After type python3
Is something wrong for the building or install process? Thanks for your time. |
In order to use onnxruntime python package, you need to install onnx python package first. |
Thanks! But I can't find any useful python code to run this model. Thanks for your time. |
Here's one example from this page
|
hi @pranavsharma @snnn could you check and give me your comment |
I did pip3 install onnxruntime (if you are on a different OS it might be different i.e. linux flavor). Then I get an error "cannot import name 'get_all_providers' from 'onnxruntime.capi._pybind_state" Which will take you to here: #4196 I have not completed the steps to see if it will solve the issue or not yet but putting this here in case others end up here eventually. In the issue template the user mentions System Information as: OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10. So if you are in those OS you might look into the above link if your issue is as mine. I have same issue as @hoaquocphan |
I follow the "Build ONNX Runtime" on Ubuntu 16.04 environment with the following commands:
git clone --recursive https://github.com/Microsoft/onnxruntime
cd onnxruntime
./build.sh --config RelWithDebInfo --build_wheel
The build is successful, and start to run the tests.
Since the tests stay for a long time, so I use CTRL-C to break it.
Now, I am trying to use the pre-trained model to run this onnx runtime.
But I can't find any useful information to run it.
The example is using Python to import the onnx_runtime.
I have no idea which file and where is needed for the Python program to import it.
Where can I find the related information?
Thanks for your time.
The text was updated successfully, but these errors were encountered: