pub enum Dim {
Static(usize),
Dynamic(u32),
}Expand description
A single dimension — either a concrete size or a symbolic dynamic dim.
Variants§
Static(usize)
Known at graph construction time.
Dynamic(u32)
Unknown until runtime. Identified by a symbol index so that
Dim::Dynamic(0) in two shapes means “same unknown size”.
Implementations§
Trait Implementations§
impl Copy for Dim
impl Eq for Dim
impl StructuralPartialEq for Dim
Auto Trait Implementations§
impl Freeze for Dim
impl RefUnwindSafe for Dim
impl Send for Dim
impl Sync for Dim
impl Unpin for Dim
impl UnsafeUnpin for Dim
impl UnwindSafe for Dim
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more