pub struct ModelBuilder;Expand description
Builder for creating models
Implementations§
Source§impl ModelBuilder
impl ModelBuilder
Sourcepub fn onnx_from_directory<P: AsRef<Path>>(path: P) -> EdgeResult<OnnxModel>
pub fn onnx_from_directory<P: AsRef<Path>>(path: P) -> EdgeResult<OnnxModel>
Create an ONNX model from a directory
Sourcepub fn onnx_from_file<P: AsRef<Path>>(path: P) -> EdgeResult<OnnxModel>
pub fn onnx_from_file<P: AsRef<Path>>(path: P) -> EdgeResult<OnnxModel>
Create an ONNX model from a file
Auto Trait Implementations§
impl Freeze for ModelBuilder
impl RefUnwindSafe for ModelBuilder
impl Send for ModelBuilder
impl Sync for ModelBuilder
impl Unpin for ModelBuilder
impl UnwindSafe for ModelBuilder
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