pub enum Reader<P: ReducePrecision> {
Parallel(ParallelReader<P>),
Perpendicular(PerpendicularReader<P>),
}Variants§
Implementations§
Source§impl<P: ReducePrecision> Reader<P>
impl<P: ReducePrecision> Reader<P>
pub fn new_Parallel(_0: ParallelReader<P>) -> Self
pub fn __expand_new_Parallel( _: &mut Scope, _0: <ParallelReader<P> as RudaType>::ExpandType, ) -> ReaderExpand<P>
pub fn new_Perpendicular(_0: PerpendicularReader<P>) -> Self
pub fn __expand_new_Perpendicular( _: &mut Scope, _0: <PerpendicularReader<P> as RudaType>::ExpandType, ) -> ReaderExpand<P>
Source§impl<P: ReducePrecision> Reader<P>
impl<P: ReducePrecision> Reader<P>
pub fn new<I: ReduceInstruction<P>, Out: NumericVector>( input: &VirtualTensor<P::EI, P::SI>, output: &mut VirtualTensor<Out::T, Out::N, ReadWrite>, inst: &I, reduce_axis: usize, reduce_index: usize, idle: ComptimeOption<bool>, bound_checks: BoundChecks, vectorization_mode: VectorizationMode, plane_dim_ceil: bool, ) -> Reader<P>
pub fn __expand_new<I: ReduceInstruction<P>, Out: NumericVector>( scope: &mut Scope, input: <VirtualTensor<P::EI, P::SI> as RudaType>::ExpandType, output: <VirtualTensor<Out::T, Out::N, ReadWrite> as RudaType>::ExpandType, inst: <I as RudaType>::ExpandType, reduce_axis: <usize as RudaType>::ExpandType, reduce_index: <usize as RudaType>::ExpandType, idle: <ComptimeOption<bool> as RudaType>::ExpandType, bound_checks: BoundChecks, vectorization_mode: VectorizationMode, plane_dim_ceil: bool, ) -> <Reader<P> as RudaType>::ExpandType
Trait Implementations§
Source§impl<P: ReducePrecision> RudaDebug for Reader<P>
impl<P: ReducePrecision> RudaDebug for Reader<P>
Source§fn set_debug_name(&self, scope: &mut Scope, name: &'static str)
fn set_debug_name(&self, scope: &mut Scope, name: &'static str)
Set the debug name of this type’s expansion. Should do nothing for types that don’t appear
at runtime
Source§impl<P: ReducePrecision> RudaType for Reader<P>
impl<P: ReducePrecision> RudaType for Reader<P>
type ExpandType = ReaderExpand<P>
Auto Trait Implementations§
impl<P> Freeze for Reader<P>
impl<P> RefUnwindSafe for Reader<P>where
ParallelReader<P>: RefUnwindSafe,
PerpendicularReader<P>: RefUnwindSafe,
impl<P> Send for Reader<P>
impl<P> Sync for Reader<P>
impl<P> Unpin for Reader<P>
impl<P> UnsafeUnpin for Reader<P>where
ParallelReader<P>: UnsafeUnpin,
PerpendicularReader<P>: UnsafeUnpin,
impl<P> UnwindSafe for Reader<P>where
ParallelReader<P>: UnwindSafe,
PerpendicularReader<P>: 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