pub struct WeightTensor {
pub ptr: DevicePtr,
pub shape: Vec<usize>,
pub dtype: WeightDtype,
}Expand description
A weight tensor on the GPU.
Fields§
§ptr: DevicePtr§shape: Vec<usize>§dtype: WeightDtypeImplementations§
Source§impl WeightTensor
impl WeightTensor
Auto Trait Implementations§
impl Freeze for WeightTensor
impl RefUnwindSafe for WeightTensor
impl Send for WeightTensor
impl Sync for WeightTensor
impl Unpin for WeightTensor
impl UnwindSafe for WeightTensor
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