TVec

Type Alias TVec 

Source
pub type TVec<T> = SmallVec<[T; 4]>;
Expand description

A Smallvec instantiation with 4 embeddable values.

Used about everywhere in tract, for node inputs and outputs, or tensor dimensions.

Aliased Type§

pub struct TVec<T> { /* private fields */ }

Trait Implementations§

Source§

impl OpaqueFact for TVec<Box<dyn OpaqueFact>>

Source§

fn mem_size(&self) -> TDim

Source§

fn same_as(&self, other: &dyn OpaqueFact) -> bool

Source§

fn compatible_with(&self, other: &dyn OpaqueFact) -> bool

Whether or not it is acceptable for a Patch to substitute self by other. Read more
Source§

fn clarify_dt_shape(&self) -> Option<(DatumType, &[usize])>

Source§

impl OpaqueFact for TVec<Option<Box<dyn OpaqueFact>>>

Source§

fn mem_size(&self) -> TDim

Source§

fn same_as(&self, other: &dyn OpaqueFact) -> bool

Source§

fn compatible_with(&self, other: &dyn OpaqueFact) -> bool

Whether or not it is acceptable for a Patch to substitute self by other. Read more
Source§

fn clarify_dt_shape(&self) -> Option<(DatumType, &[usize])>