pub enum DimSize {
Static(usize),
Dynamic,
Symbolic(String),
}Expand description
Shape information for a tensor dimension
Variants§
Static(usize)
Static known size
Dynamic
Dynamic size (known at runtime)
Symbolic(String)
Symbolic dimension (e.g., batch size)
Implementations§
Trait Implementations§
impl Eq for DimSize
impl StructuralPartialEq for DimSize
Auto Trait Implementations§
impl Freeze for DimSize
impl RefUnwindSafe for DimSize
impl Send for DimSize
impl Sync for DimSize
impl Unpin for DimSize
impl UnwindSafe for DimSize
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