Struct tract_hir::internal::tract_linalg::frame::Packer[]

pub struct Packer { /* fields omitted */ }

Implementations

impl Packer

pub fn new(
    k: usize,
    nr: usize,
    alignment: usize,
    end_padding_record: usize
) -> Packer

pub fn alignment(&self) -> usize

pub fn panel_width(&self) -> usize

pub fn len(&self, n: usize) -> usize

pub unsafe fn pack<'a, 'b>(
    &self,
    pb: impl BorrowMut<TensorView<'a>>,
    b: impl Borrow<TensorView<'b>>,
    k_axis: usize,
    mn_axis: usize
)

pub fn write_with_k_outer<T>(
    &self,
    pb: &'p mut [T],
    mn: usize
) -> KOutWriter<'p, T> where
    T: Copy + Debug

pub fn write_with_k_inner<T>(
    &self,
    pb: &'p mut [T],
    mn: usize
) -> KInWriter<'p, T> where
    T: Copy + Debug

Trait Implementations

impl Clone for Packer

impl Debug for Packer

impl Eq for Packer

impl Hash for Packer

impl PartialEq<Packer> for Packer

impl StructuralEq for Packer

impl StructuralPartialEq for Packer

Auto Trait Implementations

impl RefUnwindSafe for Packer

impl Send for Packer

impl Sync for Packer

impl Unpin for Packer

impl UnwindSafe for Packer

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Any + Send + Sync

impl<T> DynClone for T where
    T: Clone
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.