pub struct ModelMetadata {
pub ir_version: i64,
pub producer_name: String,
pub producer_version: String,
pub domain: String,
pub model_version: i64,
pub doc_string: Option<String>,
pub graph_name: String,
pub metadata_props: Vec<(String, String)>,
}Expand description
Model-level metadata that the IR Graph does not itself carry.
The load path drops these (it only keeps opset_imports on the Graph), so
a caller that wants a faithful ModelProto supplies them here. All fields
default to empty/zero except ir_version.
Fields§
§ir_version: i64ModelProto.ir_version.
producer_name: StringModelProto.producer_name.
producer_version: StringModelProto.producer_version.
domain: StringModelProto.domain.
model_version: i64ModelProto.model_version.
doc_string: Option<String>ModelProto.doc_string.
graph_name: StringGraphProto.name for the top-level graph.
metadata_props: Vec<(String, String)>ModelProto.metadata_props (key → value), emitted in order.
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 (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 ModelMetadata
impl Debug for ModelMetadata
Source§impl Default for ModelMetadata
impl Default for ModelMetadata
Source§fn default() -> ModelMetadata
fn default() -> ModelMetadata
Returns the “default value” for a type. Read more
impl Eq for ModelMetadata
Source§impl PartialEq for ModelMetadata
impl PartialEq for ModelMetadata
impl StructuralPartialEq for ModelMetadata
Auto 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more