pub struct TchShape<const D: usize> {
pub dims: [i64; D],
}Expand description
A shape that can be used by LibTorch.
Fields§
§dims: [i64; D]The shape’s dimensions.
Trait Implementations§
Auto Trait Implementations§
impl<const D: usize> Freeze for TchShape<D>
impl<const D: usize> RefUnwindSafe for TchShape<D>
impl<const D: usize> Send for TchShape<D>
impl<const D: usize> Sync for TchShape<D>
impl<const D: usize> Unpin for TchShape<D>
impl<const D: usize> UnwindSafe for TchShape<D>
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