#[non_exhaustive]pub enum Backend {
Auto,
Cpu,
Metal,
CoreMl,
OpenCl,
OpenGl,
Vulkan,
Cuda,
}Expand description
MNN execution backend.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Auto
Let MNN select a backend.
Cpu
CPU inference.
Metal
Apple Metal.
CoreMl
Apple Core ML.
OpenCl
OpenCL.
OpenGl
OpenGL.
Vulkan
Vulkan.
Cuda
NVIDIA CUDA.
Implementations§
Trait Implementations§
impl Copy for Backend
impl Eq for Backend
impl StructuralPartialEq for Backend
Auto Trait Implementations§
impl Freeze for Backend
impl RefUnwindSafe for Backend
impl Send for Backend
impl Sync for Backend
impl Unpin for Backend
impl UnsafeUnpin for Backend
impl UnwindSafe for Backend
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