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) -> Self
pub fn from_env() -> Self
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