pub struct Half {
pub shape: Vec<usize>,
pub dtype: DType,
/* private fields */
}Expand description
A half-precision tensor stored packed (2×16-bit per 32-bit word) in GPU memory.
Fields§
§shape: Vec<usize>§dtype: DTypeImplementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Half
impl !UnwindSafe for Half
impl Freeze for Half
impl Send for Half
impl Sync for Half
impl Unpin for Half
impl UnsafeUnpin for Half
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