v2.0.0-rc.6 #280
decahedron1
announced in
Announcements
v2.0.0-rc.6
#280
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
ort::Error
refactorort::Error
is no longer an enum, but rather an opaque struct with a message and a newErrorCode
field.ort::Error
still implementsstd::error::Error
, so this change shouldn't be too breaking; however, if you were previouslymatch
ing onort::Error
s, you'll have to refactor your code to instead match on the error's code (acquired with theError::code()
function).AllocationDevice
refactorThe
AllocationDevice
type has also been converted from an enum to a struct. Common devices like CUDA or DirectML are accessible via associated constants likeAllocationDevice::CUDA
&AllocationDevice::DIRECTML
.Features
ModelMetadata::custom_keys()
to get a Vec of all custom keys.SessionBuilder
options affecting compute & graph optimizations.Allocator
API. You can now allocate & free buffers acquired from a session or operator kernel context.ValueType::Optional
.KernelContext::par_for
, allowing operator kernels to use ONNX Runtime's thread pool without needing an extra dependency on a crate like rayon.Fixes
Tensor
s from&CowArray
s.tracing
'sattributes
feature - a--no-default-features
build ofort
now only builds 9 crates!operator-libraries
feature - you can still useSessionBuilder::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:
#💬|ort-discussions
Love
ort
? Consider supporting us on Open Collective 💖❤️💚💙💛
This discussion was created from the release v2.0.0-rc.6.
Beta Was this translation helpful? Give feedback.
All reactions