pub enum ShapeDim {
Name(Ident),
Lit(i64),
}Expand description
A single dimension in a tensor shape specification.
Dimensions are either symbolic names resolved at compile time or literal integer constants.
Variants§
Name(Ident)
Symbolic dimension name (e.g., M, batch).
Lit(i64)
Literal integer dimension (e.g., 3, 128).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ShapeDim
impl RefUnwindSafe for ShapeDim
impl Send for ShapeDim
impl Sync for ShapeDim
impl Unpin for ShapeDim
impl UnsafeUnpin for ShapeDim
impl UnwindSafe for ShapeDim
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