Breaking: Infallible functions
The following functions have been updated to return T instead of ort::Result<T>:
MemoryInfo::memory_typeMemoryInfo::allocator_typeMemoryInfo::allocation_deviceMemoryInfo::device_idValue::<T>::memory_infoValue::<T>::dtype
Features
ValueTypenow implementsDisplay.- 7f71e6c Implement
SyncforValue<T>. - abd527b Arbitrarily configurable execution providers allows you to add custom configuration options to the CANN, CUDA, oneDNN, QNN, TensorRT, VITIS, and XNNPACK execution providers.
- This also fixes a bug when attempting to configure TensorRT's
ep_context_embed_mode.
- This also fixes a bug when attempting to configure TensorRT's
- e16fd5b Add more options to the CUDA execution provider, including user compute streams and SDPA kernel configuration.
- bd3c891 Implement
SendforAllocator. - 6de6aa5 Add
Session::overridable_initializersto get a list of overridable initializers in the graph. - c8b36f3 Allow loading a session with external initializers in memory.
- 2e1f014 Allow upgrading a
ValueReforValueRefMutto aValuein certain cases. - f915bca Adds
SessionBuilder::with_config_entryfor adding custom session config options. - ae7b594 Adds an environment variable,
ORT_PREFER_DYNAMIC_LINK, to override whether or notortshould prefer static or dynamic libs whenORT_LIB_LOCATIONis specified. - 1e2e7b0 Add functions for explicit data re-synchronization for
IoBinding. - b19cff4 Add
::ptr()to every C-backed struct to exposeort_syspointers. - d0ee395 Implement
CloneforMemoryInfo.
Fixes
- b58595c The oneDNN execution provider now registers using a more recent API internally. (Also,
with_arena_allocatoris nowwith_use_arena.) - cf1be86 Remove the lifetime bound for
IoBindingso it can be stored in a struct alongside a session. - Multiple fixes to static linking for Linux, macOS, and Android.
- b1fb8c0
Sequence::extract_sequencenow returnsValue<T>instead ofValueRef<T>. - 542f210 Make
EnvironmentandExecutionProviderSend + Sync. - fbe8cbf (Sorta) handle error messages for non-English localities on Windows.
Other changes
- API documentation is now back on docs.rs!
- Improved error messages in multiple areas
If you have any questions about this release, we're here to help:
Thank you to Brad Neuman, web3nomad, and Julien Cretin for contributing to this release!
Thank you to Thomas, Johannes Laier, Yunho Cho, Phu Tran, Bartek, Noah, Matouš Kučera, Kevin Lacker, and Okabintaro, whose support made this release possible. If you'd like to support ort as well, consider supporting us on Open Collective 💖
💜🩷💜🩷