pub struct ExecHints {
pub mask: Option<MaskPack>,
pub subset: Option<SubsetSpec>,
pub prefer_sparse: bool,
pub prefer_lowrank: bool,
pub tile_kb: Option<usize>,
}Expand description
Execution hints for controlling tensor operations
Fields§
§mask: Option<MaskPack>Optional mask for masked operations
subset: Option<SubsetSpec>Optional subset specification
prefer_sparse: boolPrefer sparse representation
prefer_lowrank: boolPrefer low-rank representation
tile_kb: Option<usize>Tile size in KB
Implementations§
Source§impl ExecHints
impl ExecHints
Sourcepub fn with_sparse(self, prefer: bool) -> Self
pub fn with_sparse(self, prefer: bool) -> Self
Set sparse preference
Sourcepub fn with_lowrank(self, prefer: bool) -> Self
pub fn with_lowrank(self, prefer: bool) -> Self
Set low-rank preference
Sourcepub fn with_tile_kb(self, kb: usize) -> Self
pub fn with_tile_kb(self, kb: usize) -> Self
Set tile size
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ExecHints
impl RefUnwindSafe for ExecHints
impl Send for ExecHints
impl Sync for ExecHints
impl Unpin for ExecHints
impl UnwindSafe for ExecHints
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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