pub struct Onnx(/* private fields */);Trait Implementations§
Source§impl OnnxInterface for Onnx
impl OnnxInterface for Onnx
type InferenceModel = InferenceModel
fn load(&self, path: impl AsRef<Path>) -> Result<InferenceModel>
Source§fn load_buffer(&self, data: &[u8]) -> Result<InferenceModel>
fn load_buffer(&self, data: &[u8]) -> Result<InferenceModel>
Load a ONNX model from a buffer into an InferenceModel.
Auto Trait Implementations§
impl Freeze for Onnx
impl RefUnwindSafe for Onnx
impl !Send for Onnx
impl !Sync for Onnx
impl Unpin for Onnx
impl UnsafeUnpin for Onnx
impl UnwindSafe for Onnx
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more