pub struct Dims {
pub n: i32,
pub h: i32,
pub w: i32,
pub c: i32,
}Expand description
Dimensions for 4D Tensors (Batch, Height, Width, Channels / Output Channels).
Fields§
§n: i32Batch size or generic dimension n.
h: i32Height h.
w: i32Width w.
c: i32Channels c.
Implementations§
Trait Implementations§
impl Copy for Dims
impl Eq for Dims
impl StructuralPartialEq for Dims
Auto Trait Implementations§
impl Freeze for Dims
impl RefUnwindSafe for Dims
impl Send for Dims
impl Sync for Dims
impl Unpin for Dims
impl UnsafeUnpin for Dims
impl UnwindSafe for Dims
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