pub struct SyncBufferLoader<MP: MatmulPrecision, G: GlobalConfig, L: SyncBufferLoadingStrategy> { /* private fields */ }
Implementations§
Source§impl<MP: MatmulPrecision, G: GlobalConfig, L: SyncBufferLoadingStrategy> SyncBufferLoader<MP, G, L>
impl<MP: MatmulPrecision, G: GlobalConfig, L: SyncBufferLoadingStrategy> SyncBufferLoader<MP, G, L>
pub fn new( tensor: VirtualTensor<MP::EI>, x_offset: u32, y_offset: u32, batch_offset: u32, quantization: CubeOption<Quantization<MP>>, input_ident: InputIdent, config: G, ) -> Self
pub fn reader( this: &Self, buffer_id: BufferId, ) -> BufferReader<MP::ES, L::TilingLayout>
pub fn advance_view(this: &mut Self, k_offset: u32)
pub fn fill_stage(this: &mut Self, buffer_id: BufferId, config: G)
pub fn create_job( this: &Self, buffer_id: BufferId, config: G, ) -> SyncBufferLoaderJob<MP, L>
pub fn execute_task( this: &mut Self, job: &mut SyncBufferLoaderJob<MP, L>, config: G, )
pub fn __expand_new( context: &mut Scope, tensor: <VirtualTensor<MP::EI> as CubeType>::ExpandType, x_offset: <u32 as CubeType>::ExpandType, y_offset: <u32 as CubeType>::ExpandType, batch_offset: <u32 as CubeType>::ExpandType, quantization: <CubeOption<Quantization<MP>> as CubeType>::ExpandType, input_ident: InputIdent, config: G, ) -> <Self as CubeType>::ExpandType
pub fn __expand_reader( context: &mut Scope, this: <Self as CubeType>::ExpandType, buffer_id: BufferId, ) -> <BufferReader<MP::ES, L::TilingLayout> as CubeType>::ExpandType
pub fn __expand_advance_view( context: &mut Scope, this: <Self as CubeType>::ExpandType, k_offset: <u32 as CubeType>::ExpandType, ) -> <() as CubeType>::ExpandType
pub fn __expand_fill_stage( context: &mut Scope, this: <Self as CubeType>::ExpandType, buffer_id: BufferId, config: G, ) -> <() as CubeType>::ExpandType
pub fn __expand_create_job( context: &mut Scope, this: <Self as CubeType>::ExpandType, buffer_id: BufferId, config: G, ) -> <SyncBufferLoaderJob<MP, L> as CubeType>::ExpandType
pub fn __expand_execute_task( context: &mut Scope, this: <Self as CubeType>::ExpandType, job: <SyncBufferLoaderJob<MP, L> as CubeType>::ExpandType, config: G, ) -> <() as CubeType>::ExpandType
Trait Implementations§
Source§impl<MP: Clone + MatmulPrecision, G: Clone + GlobalConfig, L: Clone + SyncBufferLoadingStrategy> Clone for SyncBufferLoader<MP, G, L>
impl<MP: Clone + MatmulPrecision, G: Clone + GlobalConfig, L: Clone + SyncBufferLoadingStrategy> Clone for SyncBufferLoader<MP, G, L>
Source§fn clone(&self) -> SyncBufferLoader<MP, G, L>
fn clone(&self) -> SyncBufferLoader<MP, G, L>
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<MP: MatmulPrecision, G: GlobalConfig, L: SyncBufferLoadingStrategy> CubeType for SyncBufferLoader<MP, G, L>
impl<MP: MatmulPrecision, G: GlobalConfig, L: SyncBufferLoadingStrategy> CubeType for SyncBufferLoader<MP, G, L>
type ExpandType = SyncBufferLoaderExpand<MP, G, L>
Source§fn init(scope: &mut Scope, expand: Self::ExpandType) -> Self::ExpandType
fn init(scope: &mut Scope, expand: Self::ExpandType) -> Self::ExpandType
Wrapper around the init method, necessary to type inference.
Source§impl<MP: MatmulPrecision, G: GlobalConfig, L: SyncBufferLoadingStrategy> LoaderEventListener for SyncBufferLoader<MP, G, L>
impl<MP: MatmulPrecision, G: GlobalConfig, L: SyncBufferLoadingStrategy> LoaderEventListener for SyncBufferLoader<MP, G, L>
type State = SyncBufferLoaderJob<MP, L>
Auto Trait Implementations§
impl<MP, G, L> Freeze for SyncBufferLoader<MP, G, L>
impl<MP, G, L> RefUnwindSafe for SyncBufferLoader<MP, G, L>where
G: RefUnwindSafe,
<L as SyncBufferLoadingStrategy>::TilingLayout: RefUnwindSafe,
<L as SyncBufferLoadingStrategy>::Job<MP>: RefUnwindSafe,
<MP as MatmulPrecision>::ES: RefUnwindSafe,
<MP as MatmulPrecision>::EI: RefUnwindSafe,
impl<MP, G, L> Send for SyncBufferLoader<MP, G, L>
impl<MP, G, L> Sync for SyncBufferLoader<MP, G, L>
impl<MP, G, L> Unpin for SyncBufferLoader<MP, G, L>where
G: Unpin,
<L as SyncBufferLoadingStrategy>::TilingLayout: Unpin,
<L as SyncBufferLoadingStrategy>::Job<MP>: Unpin,
<MP as MatmulPrecision>::ES: Unpin,
<MP as MatmulPrecision>::EI: Unpin,
impl<MP, G, L> UnwindSafe for SyncBufferLoader<MP, G, L>where
G: UnwindSafe,
<L as SyncBufferLoadingStrategy>::TilingLayout: UnwindSafe,
<L as SyncBufferLoadingStrategy>::Job<MP>: UnwindSafe,
<MP as MatmulPrecision>::ES: UnwindSafe,
<MP as MatmulPrecision>::EI: 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