Skip to content
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

Use ORT Model Builder API #24

Merged
merged 5 commits into from
Jan 2, 2025

Conversation

huningxin
Copy link
Collaborator

@huningxin huningxin commented Jan 2, 2025

This PR include changes:

  1. Use ORT Model Builder API of Model Builder API microsoft/onnxruntime#23223
  2. Introduce third_party/onnxruntime_headers hosting ORT headers of https://github.com/microsoft/onnxruntime/tree/main/include
  3. Remove ORT headers from third_party/microsoft_headers
  4. Remove the inclusion of onnx.pb.h
  5. Pass ORT_API_VERSION to OrtApiBase::GetApi()
  6. Refactor scoped ORT types ptr

@shiyi9801
Copy link
Owner

LGTM 👍

@mingmingtasd
Copy link
Collaborator

LGTM! 👍

@mingmingtasd mingmingtasd merged commit 2bc8f32 into shiyi9801:ort_backend Jan 2, 2025
@huningxin
Copy link
Collaborator Author

Thanks for review and merging! You may need to build onnxruntime.dll against microsoft/onnxruntime#23223 for testing.

Also removes the inclusion of onnx.pb.h header.
1. Rename to ScopedOrtTypePtr
2. Use macros
3. Introduce `operator T*()`
4. Introduce `Release()` method
5. Rename `get_ptr()` to `Get()`
6. Rename `get_pptr()` to `GetAddressOf()`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants