pub struct ModelMetadata {
pub name: String,
pub scale: u32,
pub input_name: String,
pub output_name: String,
pub input_channels: u32,
pub min_input_hw: (u32, u32),
pub max_input_hw: (u32, u32),
}Expand description
Metadata extracted from an ONNX model’s input/output tensor descriptors.
Fields§
§name: String§scale: u32§input_name: String§output_name: String§input_channels: u32§min_input_hw: (u32, u32)§max_input_hw: (u32, u32)Trait Implementations§
Source§impl Clone for ModelMetadata
impl Clone for ModelMetadata
Source§fn clone(&self) -> ModelMetadata
fn clone(&self) -> ModelMetadata
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 ModelMetadata
impl RefUnwindSafe for ModelMetadata
impl Send for ModelMetadata
impl Sync for ModelMetadata
impl Unpin for ModelMetadata
impl UnsafeUnpin for ModelMetadata
impl UnwindSafe for ModelMetadata
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