pub struct KernelDispatchConfig {
pub policy: KernelDispatchPolicy,
pub force_common_kinds: &'static [OpKind],
pub force_native_kinds: &'static [OpKind],
}Expand description
Per-compile overrides on top of KernelDispatchPolicy.
Fields§
§policy: KernelDispatchPolicy§force_common_kinds: &'static [OpKind]Always common-lower these kinds (e.g. splat on CPU while keeping native matmul).
force_native_kinds: &'static [OpKind]Never common-lower these kinds (overrides ForceCommon for listed kinds).
Implementations§
Source§impl KernelDispatchConfig
impl KernelDispatchConfig
pub fn new(policy: KernelDispatchPolicy) -> KernelDispatchConfig
pub fn from_env() -> KernelDispatchConfig
Trait Implementations§
Source§impl Clone for KernelDispatchConfig
impl Clone for KernelDispatchConfig
Source§fn clone(&self) -> KernelDispatchConfig
fn clone(&self) -> KernelDispatchConfig
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 moreSource§impl Debug for KernelDispatchConfig
impl Debug for KernelDispatchConfig
Source§impl Default for KernelDispatchConfig
impl Default for KernelDispatchConfig
Source§fn default() -> KernelDispatchConfig
fn default() -> KernelDispatchConfig
Returns the “default value” for a type. Read more
impl Copy for KernelDispatchConfig
Auto Trait Implementations§
impl Freeze for KernelDispatchConfig
impl RefUnwindSafe for KernelDispatchConfig
impl Send for KernelDispatchConfig
impl Sync for KernelDispatchConfig
impl Unpin for KernelDispatchConfig
impl UnsafeUnpin for KernelDispatchConfig
impl UnwindSafe for KernelDispatchConfig
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more