Struct tract_core::ops::nn::BaseDataShape[][src]

pub struct BaseDataShape<D, S> where
    D: DimLike,
    S: AsRef<[D]> + Debug
{ pub fmt: DataFormat, pub shape: S, pub strides: TVec<D>, }

Fields

fmt: DataFormatshape: Sstrides: TVec<D>

Implementations

impl<D, S> BaseDataShape<D, S> where
    D: DimLike,
    S: AsRef<[D]> + Debug
[src]

pub fn rank(&self) -> usize[src]

pub fn hw_rank(&self) -> usize[src]

pub fn n_axis(&self) -> Option<usize>[src]

pub fn c_axis(&self) -> usize[src]

pub fn h_axis(&self) -> usize[src]

pub fn hw_axes(&self) -> Range<usize>

Notable traits for Range<A>

impl<A> Iterator for Range<A> where
    A: Step
type Item = A;
[src]

pub fn n_dim(&self) -> Option<&D>[src]

pub fn c_dim(&self) -> &D

Notable traits for &'_ mut I

impl<'_, I> Iterator for &'_ mut I where
    I: Iterator + ?Sized
type Item = <I as Iterator>::Item;
[src]

pub fn hw_dims(&self) -> &[D]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

pub fn n(&self) -> Option<&D>[src]

pub fn c(&self) -> &D

Notable traits for &'_ mut I

impl<'_, I> Iterator for &'_ mut I where
    I: Iterator + ?Sized
type Item = <I as Iterator>::Item;
[src]

pub fn n_stride(&self) -> Option<&D>[src]

pub fn h_stride(&self) -> &D

Notable traits for &'_ mut I

impl<'_, I> Iterator for &'_ mut I where
    I: Iterator + ?Sized
type Item = <I as Iterator>::Item;
[src]

pub fn hw_strides(&self) -> &[D]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

pub fn w_stride(&self) -> &D

Notable traits for &'_ mut I

impl<'_, I> Iterator for &'_ mut I where
    I: Iterator + ?Sized
type Item = <I as Iterator>::Item;
[src]

pub fn c_stride(&self) -> &D

Notable traits for &'_ mut I

impl<'_, I> Iterator for &'_ mut I where
    I: Iterator + ?Sized
type Item = <I as Iterator>::Item;
[src]

Trait Implementations

impl<D: Clone, S: Clone> Clone for BaseDataShape<D, S> where
    D: DimLike,
    S: AsRef<[D]> + Debug
[src]

impl<D: Debug, S: Debug> Debug for BaseDataShape<D, S> where
    D: DimLike,
    S: AsRef<[D]> + Debug
[src]

impl<D: Hash, S: Hash> Hash for BaseDataShape<D, S> where
    D: DimLike,
    S: AsRef<[D]> + Debug
[src]

impl<D: PartialEq, S: PartialEq> PartialEq<BaseDataShape<D, S>> for BaseDataShape<D, S> where
    D: DimLike,
    S: AsRef<[D]> + Debug
[src]

impl<D, S> StructuralPartialEq for BaseDataShape<D, S> where
    D: DimLike,
    S: AsRef<[D]> + Debug
[src]

Auto Trait Implementations

impl<D, S> RefUnwindSafe for BaseDataShape<D, S> where
    D: RefUnwindSafe,
    S: RefUnwindSafe

impl<D, S> Send for BaseDataShape<D, S> where
    S: Send

impl<D, S> Sync for BaseDataShape<D, S> where
    S: Sync

impl<D, S> Unpin for BaseDataShape<D, S> where
    D: Unpin,
    S: Unpin

impl<D, S> UnwindSafe for BaseDataShape<D, S> where
    D: RefUnwindSafe + UnwindSafe,
    S: UnwindSafe

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
[src]

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

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.