pub struct DispatchTable {
pub elementwise: ElementwiseFn,
pub reduction: ReductionFn,
pub matmul: MatmulFn,
pub dot: DotFn,
pub elementwise_backend: &'static str,
pub reduction_backend: &'static str,
pub matmul_backend: &'static str,
pub dot_backend: &'static str,
}Expand description
Dispatch table con function pointers seleccionados al startup. Todos los campos son public para acceso directo sin getter overhead.
Fields§
§elementwise: ElementwiseFnKernel para operaciones elementwise (add, mul, div, etc)
reduction: ReductionFnKernel para reducciones (sum, mean, etc)
matmul: MatmulFnKernel para matrix multiplication
dot: DotFnKernel para dot product
elementwise_backend: &'static strMetadata: nombre del backend usado para elementwise
reduction_backend: &'static strMetadata: nombre del backend usado para reduction
matmul_backend: &'static strMetadata: nombre del backend usado para matmul
dot_backend: &'static strMetadata: nombre del backend usado para dot
Trait Implementations§
Source§impl Clone for DispatchTable
impl Clone for DispatchTable
Source§fn clone(&self) -> DispatchTable
fn clone(&self) -> DispatchTable
Returns a duplicate of the value. Read more
1.0.0 · 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 DispatchTable
impl Debug for DispatchTable
impl Copy for DispatchTable
Auto Trait Implementations§
impl Freeze for DispatchTable
impl RefUnwindSafe for DispatchTable
impl Send for DispatchTable
impl Sync for DispatchTable
impl Unpin for DispatchTable
impl UnwindSafe for DispatchTable
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