pub struct MapWeights {
pub tensors: HashMap<String, (Vec<f32>, Vec<usize>)>,
}Expand description
In-memory weight map for tests and tooling.
Fields§
§tensors: HashMap<String, (Vec<f32>, Vec<usize>)>Implementations§
Trait Implementations§
Source§impl Clone for MapWeights
impl Clone for MapWeights
Source§fn clone(&self) -> MapWeights
fn clone(&self) -> MapWeights
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MapWeights
impl Debug for MapWeights
Source§impl Default for MapWeights
impl Default for MapWeights
Source§fn default() -> MapWeights
fn default() -> MapWeights
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MapWeights
impl RefUnwindSafe for MapWeights
impl Send for MapWeights
impl Sync for MapWeights
impl Unpin for MapWeights
impl UnsafeUnpin for MapWeights
impl UnwindSafe for MapWeights
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