#[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 duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RuntimeStatus
Source§impl Debug for RuntimeStatus
impl Debug for RuntimeStatus
impl Eq for RuntimeStatus
Source§impl Hash for RuntimeStatus
impl Hash for RuntimeStatus
Source§impl PartialEq for RuntimeStatus
impl PartialEq for RuntimeStatus
Source§fn eq(&self, other: &RuntimeStatus) -> bool
fn eq(&self, other: &RuntimeStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.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 UnsafeUnpin 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