pub struct MetaGraphDef {
pub meta_info_def: Option<MetaInfoDef>,
pub graph_def: Option<GraphDef>,
pub saver_def: Option<SaverDef>,
pub collection_def: HashMap<String, CollectionDef>,
pub signature_def: HashMap<String, SignatureDef>,
pub asset_file_def: Vec<AssetFileDef>,
pub object_graph_def: Option<SavedObjectGraph>,
}
Expand description
NOTE: This protocol buffer is evolving, and will go through revisions in the coming months.
Protocol buffer containing the following which are necessary to restart training, run inference. It can be used to serialize/de-serialize memory objects necessary for running computation in a graph when crossing the process boundary. It can be used for long term storage of graphs, cross-language execution of graphs, etc. MetaInfoDef GraphDef SaverDef CollectionDef TensorInfo SignatureDef
Fields§
§meta_info_def: Option<MetaInfoDef>
§graph_def: Option<GraphDef>
GraphDef.
saver_def: Option<SaverDef>
SaverDef.
collection_def: HashMap<String, CollectionDef>
collection_def: Map from collection name to collections. See CollectionDef section for details.
signature_def: HashMap<String, SignatureDef>
signature_def: Map from user supplied key for a signature to a single SignatureDef.
asset_file_def: Vec<AssetFileDef>
Asset file def to be used with the defined graph.
object_graph_def: Option<SavedObjectGraph>
Extra information about the structure of functions and stateful objects.
Trait Implementations§
Source§impl Clone for MetaGraphDef
impl Clone for MetaGraphDef
Source§fn clone(&self) -> MetaGraphDef
fn clone(&self) -> MetaGraphDef
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for MetaGraphDef
impl Debug for MetaGraphDef
Source§impl Default for MetaGraphDef
impl Default for MetaGraphDef
Source§impl Message for MetaGraphDef
impl Message for MetaGraphDef
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_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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
.