pub struct WeightMeta {
pub name: String,
pub dtype: WeightDtype,
pub numel: usize,
}Expand description
Name + device dtype/numel for a lazy host bind (copy from GPU if needed).
Fields§
§name: String§dtype: WeightDtype§numel: usizeTrait Implementations§
Source§impl Clone for WeightMeta
impl Clone for WeightMeta
Source§fn clone(&self) -> WeightMeta
fn clone(&self) -> WeightMeta
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for WeightMeta
impl RefUnwindSafe for WeightMeta
impl Send for WeightMeta
impl Sync for WeightMeta
impl Unpin for WeightMeta
impl UnwindSafe for WeightMeta
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