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

Bump ort from 2.0.0-rc.4 to 2.0.0-rc.6 in /src-tauri #363

Merged
merged 2 commits into from
Sep 21, 2024

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Sep 21, 2024

Bumps ort from 2.0.0-rc.4 to 2.0.0-rc.6.

Release notes

Sourced from ort's releases.

v2.0.0-rc.6

ort::Error refactor

ort::Error is no longer an enum, but rather an opaque struct with a message and a new ErrorCode field.

ort::Error still implements std::error::Error, so this change shouldn't be too breaking; however, if you were previously matching on ort::Errors, you'll have to refactor your code to instead match on the error's code (acquired with the Error::code() function).

AllocationDevice refactor

The AllocationDevice type has also been converted from an enum to a struct. Common devices like CUDA or DirectML are accessible via associated constants like AllocationDevice::CUDA & AllocationDevice::DIRECTML.

Features

  • pykeio/ort@60f6eca Update to ONNX Runtime v1.19.2.
  • pykeio/ort@9f4527c Added ModelMetadata::custom_keys() to get a Vec of all custom keys.
  • pykeio/ort@bfa791d Add various SessionBuilder options affecting compute & graph optimizations.
  • pykeio/ort@5e6fc6b Expose the underlying Allocator API. You can now allocate & free buffers acquired from a session or operator kernel context.
  • pykeio/ort@52422ae Added ValueType::Optional.
  • pykeio/ort@2576812 Added the Vitis AI execution provider for new AMD Ryzen AI chips.
  • pykeio/ort@41ef65a Added the RKNPU execution provider for certain Rockchip NPUs.
  • pykeio/ort@6b3e7a0 Added KernelContext::par_for, allowing operator kernels to use ONNX Runtime's thread pool without needing an extra dependency on a crate like rayon.

Fixes

  • pykeio/ort@edcb219 Make environment initialization thread-safe. This should eliminate intermittent segfaults when running tests concurrently, like seen in #278.
  • pykeio/ort@3072279 Linux dylibs no longer require version symlinks, fixing #269.
  • pykeio/ort@bc70a0a Fixed unsatisfiable lifetime bounds when creating Tensors from &CowArrays.
  • pykeio/ort@6592b17 Providing more inputs than the model expects no longer segfaults.
  • pykeio/ort@b595048 Shave off dependencies by removing tracing's attributes feature - a --no-default-features build of ort now only builds 9 crates!
  • pykeio/ort@c7ddbdb Removed the operator-libraries feature - you can still use SessionBuilder::with_operator_library, it's just no longer gated behind the feature!

If you have any questions about this release, we're here to help:

Love ort? Consider supporting us on Open Collective 💖

❤️💚💙💛

v2.0.0-rc.5

Possibly breaking

  • Pre-built static libraries (i.e. not cuda or tensorrt) are now linked with /MD instead of /MT on Windows; i.e. MSVC CRT is no longer statically linked. This should resolve linking issues in some cases (particularly crates using other FFI libraries), but may cause issues for others. I have personally tested this in 2 internal pyke projects that depend on ort & many FFI libraries and haven't encountered any issues, but your mileage may vary.

Definitely breaking

  • pykeio/ort@069ddfd ort now depends on ndarray 0.16.
  • pykeio/ort@e2c4549 wasm32-unknown-unknown support has been removed.
    • Getting wasm32-unknown-unknown working in the first place was basically a miracle. Hacking ONNX Runtime to work outside of Emscripten took a lot of effort, but recent changes to Emscripten and ONNX Runtime have made this exponentially more difficult. Given I am not adequately versed on ONNX Runtime's internals, the nigh-impossibility of debugging weird errors, and the vow I took to write as little C++ as possible ever since I learned Rust, it's no longer feasible for me to work on WASM support for ort.
    • If you were using ort in WASM, I suggest you use and/or support the development of alternative WASM-supporting ONNX inference crates like tract or WONNX.

Features

  • pykeio/ort@ab293f8 Update to ONNX Runtime v1.19.0.
  • pykeio/ort@ecf76f9 Use the URL hash for downloaded model filenames. Models previously downloaded & cached with commit_from_url will be redownloaded.

... (truncated)

Commits
  • ee5cc20 2.0.0-rc.6
  • 6b3e7a0 feat: threadpool access in operator kernels
  • 41ef65a feat: RKNPU execution provider
  • 2576812 feat: Vitis AI execution provider
  • eb918fe fix: import
  • c7ddbdb refactor: let ONNX Runtime manage operator library handles
  • 60f6eca chore: update to ONNX Runtime v1.19.2
  • e91a8ad feat: get build info
  • a9557aa examples(model-info): display optional types
  • 52422ae feat: support optional ValueTypes
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [ort](https://github.com/pykeio/ort) from 2.0.0-rc.4 to 2.0.0-rc.6.
- [Release notes](https://github.com/pykeio/ort/releases)
- [Commits](pykeio/ort@v2.0.0-rc.4...v2.0.0-rc.6)

---
updated-dependencies:
- dependency-name: ort
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file rust Pull requests that update Rust code labels Sep 21, 2024
@bencevans bencevans merged commit 5d62225 into main Sep 21, 2024
4 checks passed
@bencevans bencevans deleted the dependabot/cargo/src-tauri/ort-2.0.0-rc.6 branch September 21, 2024 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file rust Pull requests that update Rust code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant