Struct tract_tensorflow::tfpb::tensorflow::meta_graph_def::MetaInfoDef
source · 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: String
User 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: String
The 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: String
The 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: bool
A 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
source§fn eq(&self, other: &MetaInfoDef) -> bool
fn eq(&self, other: &MetaInfoDef) -> bool
self
and other
values to be equal, and is used
by ==
.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> 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