pub struct ModelMetadata;
Expand description
Helper functions to access model metadata
Implementations§
Source§impl ModelMetadata
impl ModelMetadata
Sourcepub fn input_width() -> usize
pub fn input_width() -> usize
Get the model’s required input width
Sourcepub fn input_height() -> usize
pub fn input_height() -> usize
Get the model’s required input height
Sourcepub fn input_frame_size() -> usize
pub fn input_frame_size() -> usize
Get the model’s required input frame size (width * height)
Sourcepub fn input_frames() -> usize
pub fn input_frames() -> usize
Get the number of input frames
Sourcepub fn label_count() -> usize
pub fn label_count() -> usize
Get the number of labels
Sourcepub fn project_name() -> &'static str
pub fn project_name() -> &'static str
Get the project name
Sourcepub fn project_owner() -> &'static str
pub fn project_owner() -> &'static str
Get the project owner
Sourcepub fn project_id() -> usize
pub fn project_id() -> usize
Get the project ID
Sourcepub fn deploy_version() -> usize
pub fn deploy_version() -> usize
Get the deploy version
Sourcepub fn inferencing_engine() -> usize
pub fn inferencing_engine() -> usize
Get the inferencing engine
Sourcepub fn interval_ms() -> usize
pub fn interval_ms() -> usize
Get the model’s interval in ms
Sourcepub fn slice_size() -> usize
pub fn slice_size() -> usize
Get the model’s slice size
Sourcepub fn has_anomaly() -> bool
pub fn has_anomaly() -> bool
Whether the model has anomaly detection
Sourcepub fn has_object_detection() -> bool
pub fn has_object_detection() -> bool
Whether the model has object detection
Sourcepub fn has_object_tracking() -> bool
pub fn has_object_tracking() -> bool
Whether the model has object tracking
Sourcepub fn raw_sample_count() -> usize
pub fn raw_sample_count() -> usize
Get the model’s raw sample count
Sourcepub fn raw_samples_per_frame() -> usize
pub fn raw_samples_per_frame() -> usize
Get the model’s raw samples per frame
Sourcepub fn input_features_count() -> usize
pub fn input_features_count() -> usize
Get the model’s input feature count
pub fn get() -> ModelMetadataInfo
Auto Trait Implementations§
impl Freeze for ModelMetadata
impl RefUnwindSafe for ModelMetadata
impl Send for ModelMetadata
impl Sync for ModelMetadata
impl Unpin 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