pub struct TracePlan<T: Element> { /* private fields */ }Expand description
Matrix-trace plan — y = sum(diag(M)).
T: Element is the element type. Supported: f32, f16, bf16,
f64.
Implementations§
Source§impl<T: Element> TracePlan<T>
impl<T: Element> TracePlan<T>
Sourcepub fn select(
_stream: &Stream,
desc: &TraceDescriptor,
_pref: PlanPreference,
) -> Result<Self>
pub fn select( _stream: &Stream, desc: &TraceDescriptor, _pref: PlanPreference, ) -> Result<Self>
Pick a kernel for desc.
Sourcepub fn can_implement(&self, args: &TraceArgs<'_, T>) -> Result<()>
pub fn can_implement(&self, args: &TraceArgs<'_, T>) -> Result<()>
Validate args.
Sourcepub fn workspace_size(&self) -> usize
pub fn workspace_size(&self) -> usize
Workspace size in bytes. Always 0 for the naive trailblazer.
Sourcepub fn precision_guarantee(&self) -> PrecisionGuarantee
pub fn precision_guarantee(&self) -> PrecisionGuarantee
Numerical guarantees for this plan’s kernel.
Auto Trait Implementations§
impl<T> Freeze for TracePlan<T>
impl<T> RefUnwindSafe for TracePlan<T>where
T: RefUnwindSafe,
impl<T> Send for TracePlan<T>where
T: Send,
impl<T> Sync for TracePlan<T>where
T: Sync,
impl<T> Unpin for TracePlan<T>where
T: Unpin,
impl<T> UnsafeUnpin for TracePlan<T>
impl<T> UnwindSafe for TracePlan<T>where
T: UnwindSafe,
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