Trait tract_data::internal::DimLike [−][src]
pub trait DimLike: Clone + Default + PartialEq + From<usize> + for<'a> TryFrom<&'a TDim, Error = Error> + Zero + Debug + Display + Hash + Add<Self, Output = Self> + Add<usize, Output = Self> + for<'a> Add<&'a Self, Output = Self> + Sub<Self, Output = Self> + Sub<usize, Output = Self> + for<'a> Sub<&'a Self, Output = Self> + Mul<Self, Output = Self> + Mul<usize, Output = Self> + for<'a> Mul<&'a Self, Output = Self> + Div<usize, Output = Self> + Rem<usize, Output = Self> + Send + Sync + 'static + Sum + Product + ToDim {
fn maybe_div(&self, other: &Self) -> Result<(Self, u64)>;
fn to_i64(&self) -> Result<i64>;
fn one() -> Self;
fn eval(&self, values: &SymbolValues) -> Self;
fn div_ceil(&self, other: usize) -> Self { ... }
fn to_usize(&self) -> Result<usize> { ... }
fn to_isize(&self) -> Result<isize> { ... }
fn to_i32(&self) -> Result<i32> { ... }
}
Expand description
A super-trait for value acting as tensor dimensions in tract.
Implemented by:
usize
for regular dimensionsTDim
supporting regular and streaming dimensions