[−][src]Trait tract_core::dim::DimLike
A super-trait for value acting as tensor dimensions in tract.
Implemented by:
usize
for regular dimensionsTDim
supporting regular and streaming dimensions
Required methods
fn maybe_mul(&self, other: &Self) -> TractResult<Self>
fn to_integer(&self) -> TractResult<i32>
Convert to regular integer.
fn one() -> Self
do not use num_traits::Mul as it implies a regular Mul