pub enum Engine {
Native,
PyTorch,
Undefined,
}
Expand description
Defines the type of engine being used to run the model.
§Fields
Native
- The native engine which will be native rust and linfa.PyTorch
- The PyTorch engine which will be PyTorch and tch-rs.Undefined
- The undefined engine which will be used when the engine is not defined.
Variants§
Implementations§
Trait Implementations§
source§impl PartialEq for Engine
impl PartialEq for Engine
impl StructuralPartialEq for Engine
Auto Trait Implementations§
impl Freeze for Engine
impl RefUnwindSafe for Engine
impl Send for Engine
impl Sync for Engine
impl Unpin for Engine
impl UnwindSafe for Engine
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