Skip to main content

Reader

Enum Reader 

Source
pub enum Reader<P: ReducePrecision> {
    Parallel(ParallelReader<P>),
    Perpendicular(PerpendicularReader<P>),
}

Variants§

§

Parallel(ParallelReader<P>)

§

Perpendicular(PerpendicularReader<P>)

Implementations§

Source§

impl<P: ReducePrecision> Reader<P>

Source

pub fn new_Parallel(_0: ParallelReader<P>) -> Self

Source

pub fn __expand_new_Parallel( _: &mut Scope, _0: <ParallelReader<P> as RudaType>::ExpandType, ) -> ReaderExpand<P>

Source

pub fn new_Perpendicular(_0: PerpendicularReader<P>) -> Self

Source

pub fn __expand_new_Perpendicular( _: &mut Scope, _0: <PerpendicularReader<P> as RudaType>::ExpandType, ) -> ReaderExpand<P>

Source§

impl<P: ReducePrecision> Reader<P>

Source

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>

Source

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>

Source§

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>

Auto Trait Implementations§

§

impl<P> Freeze for Reader<P>
where ParallelReader<P>: Freeze, PerpendicularReader<P>: Freeze,

§

impl<P> RefUnwindSafe for Reader<P>
where ParallelReader<P>: RefUnwindSafe, PerpendicularReader<P>: RefUnwindSafe,

§

impl<P> Send for Reader<P>
where ParallelReader<P>: Send, PerpendicularReader<P>: Send,

§

impl<P> Sync for Reader<P>
where ParallelReader<P>: Sync, PerpendicularReader<P>: Sync,

§

impl<P> Unpin for Reader<P>
where ParallelReader<P>: Unpin, PerpendicularReader<P>: Unpin,

§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoComptime for T

Source§

fn comptime(self) -> Self

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.