pub struct MetaInfoDef {
pub meta_graph_version: String,
pub stripped_op_list: Option<OpList>,
pub any_info: Option<Any>,
pub tags: Vec<String>,
pub tensorflow_version: String,
pub tensorflow_git_version: String,
pub stripped_default_attrs: bool,
}Expand description
Meta information regarding the graph to be exported. To be used by users of this protocol buffer to encode information regarding their meta graph.
Fields§
§meta_graph_version: StringUser specified Version string. Can be the name of the model and revision, steps this model has been trained to, etc.
stripped_op_list: Option<OpList>A copy of the OpDefs used by the producer of this graph_def. Descriptions and Ops not used in graph_def are stripped out.
any_info: Option<Any>A serialized protobuf. Can be the time this meta graph is created, or modified, or name of the model.
User supplied tag(s) on the meta_graph and included graph_def.
MetaGraphDefs should be tagged with their capabilities or use-cases. Examples: “train”, “serve”, “gpu”, “tpu”, etc. These tags enable loaders to access the MetaGraph(s) appropriate for a specific use-case or runtime environment.
tensorflow_version: StringThe version string of the tensorflow build used to write this graph. This will be populated by the framework, which will overwrite any user supplied value.
tensorflow_git_version: StringThe git_version string of the tensorflow build used to write this graph. This will be populated by the framework, which will overwrite any user supplied value.
stripped_default_attrs: boolA flag to denote whether default-valued attrs have been stripped from the nodes in this graph_def.
Trait Implementations§
Source§impl Clone for MetaInfoDef
impl Clone for MetaInfoDef
Source§fn clone(&self) -> MetaInfoDef
fn clone(&self) -> MetaInfoDef
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MetaInfoDef
impl Debug for MetaInfoDef
Source§impl Default for MetaInfoDef
impl Default for MetaInfoDef
Source§impl Message for MetaInfoDef
impl Message for MetaInfoDef
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self.Source§impl PartialEq for MetaInfoDef
impl PartialEq for MetaInfoDef
impl StructuralPartialEq for MetaInfoDef
Auto Trait Implementations§
impl Freeze for MetaInfoDef
impl RefUnwindSafe for MetaInfoDef
impl Send for MetaInfoDef
impl Sync for MetaInfoDef
impl Unpin for MetaInfoDef
impl UnwindSafe for MetaInfoDef
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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> ⓘ
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> ⓘ
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