#[repr(u32)]pub enum RuntimeStatus {
STATUS_SUPPORT_FP16 = 0,
STATUS_SUPPORT_DOT_PRODUCT = 1,
STATUS_SUPPORT_POWER_LOW = 2,
STATUS_COUNT = 3,
}
Expand description
acquire runtime status by Runtime::getCurrentStatus with following keys,
Variants§
STATUS_SUPPORT_FP16 = 0
get status whether this runtime support 16-bits float point arithmetic
STATUS_SUPPORT_DOT_PRODUCT = 1
get status whether this runtime support dot-product arithmetic
STATUS_SUPPORT_POWER_LOW = 2
get status whether this runtime support power-low (means low priority for opencl)
STATUS_COUNT = 3
emum total number
Trait Implementations§
source§impl Clone for RuntimeStatus
impl Clone for RuntimeStatus
source§fn clone(&self) -> RuntimeStatus
fn clone(&self) -> RuntimeStatus
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RuntimeStatus
impl Debug for RuntimeStatus
source§impl Hash for RuntimeStatus
impl Hash for RuntimeStatus
source§impl PartialEq for RuntimeStatus
impl PartialEq for RuntimeStatus
impl Copy for RuntimeStatus
impl Eq for RuntimeStatus
impl StructuralPartialEq for RuntimeStatus
Auto Trait Implementations§
impl Freeze for RuntimeStatus
impl RefUnwindSafe for RuntimeStatus
impl Send for RuntimeStatus
impl Sync for RuntimeStatus
impl Unpin for RuntimeStatus
impl UnwindSafe for RuntimeStatus
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)