pub struct EmbeddedWeight {
pub name: String,
pub dims: Vec<i64>,
pub data: Vec<f32>,
}Expand description
Embedded constant weight data extracted from GlobalVariable initializers.
Fields§
§name: StringTensor name (from the global variable name).
dims: Vec<i64>Tensor dimensions (e.g. [4] for array<f32, 4>).
data: Vec<f32>Flattened f32 data.
Trait Implementations§
Source§impl Clone for EmbeddedWeight
impl Clone for EmbeddedWeight
Source§fn clone(&self) -> EmbeddedWeight
fn clone(&self) -> EmbeddedWeight
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 moreAuto Trait Implementations§
impl Freeze for EmbeddedWeight
impl RefUnwindSafe for EmbeddedWeight
impl Send for EmbeddedWeight
impl Sync for EmbeddedWeight
impl Unpin for EmbeddedWeight
impl UnsafeUnpin for EmbeddedWeight
impl UnwindSafe for EmbeddedWeight
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