pub struct CoreMlAccelerator;Expand description
Non-macOS placeholder that keeps workspace consumers portable.
Implementations§
Source§impl CoreMlAccelerator
impl CoreMlAccelerator
Sourcepub fn new(_model_root: impl AsRef<Path>) -> Result<Self, InitError>
pub fn new(_model_root: impl AsRef<Path>) -> Result<Self, InitError>
Report that Core ML is unavailable on this target.
Sourcepub fn new_tosa() -> Result<Self, InitError>
pub fn new_tosa() -> Result<Self, InitError>
Report that the native TOSA-to-Core ML execution path is unavailable on this target.
Sourcepub fn new_tosa_with_compute_units(
_units: CoreMlComputeUnits,
) -> Result<Self, InitError>
pub fn new_tosa_with_compute_units( _units: CoreMlComputeUnits, ) -> Result<Self, InitError>
Report that the requested Core ML placement policy is unavailable on this target.
Trait Implementations§
Source§impl Clone for CoreMlAccelerator
impl Clone for CoreMlAccelerator
impl Copy for CoreMlAccelerator
Source§impl Debug for CoreMlAccelerator
impl Debug for CoreMlAccelerator
Source§impl Default for CoreMlAccelerator
impl Default for CoreMlAccelerator
Source§impl TosaCapabilityProvider for CoreMlAccelerator
Available on non-macOS only.
impl TosaCapabilityProvider for CoreMlAccelerator
Available on non-macOS only.
fn tosa_capabilities(&self) -> &'static [CapabilityDescriptor]
Auto Trait Implementations§
impl Freeze for CoreMlAccelerator
impl RefUnwindSafe for CoreMlAccelerator
impl Send for CoreMlAccelerator
impl Sync for CoreMlAccelerator
impl Unpin for CoreMlAccelerator
impl UnsafeUnpin for CoreMlAccelerator
impl UnwindSafe for CoreMlAccelerator
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