Struct tensorflow::MetaGraphDef
source · pub struct MetaGraphDef { /* private fields */ }
Expand description
Contains data 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.
Implementations§
source§impl MetaGraphDef
impl MetaGraphDef
sourcepub fn signatures(&self) -> &HashMap<String, SignatureDef>
pub fn signatures(&self) -> &HashMap<String, SignatureDef>
Returns the defined signatures.
sourcepub fn get_signature(&self, name: &str) -> Result<&SignatureDef>
pub fn get_signature(&self, name: &str) -> Result<&SignatureDef>
Returns the specified signature.
Trait Implementations§
source§impl Clone for MetaGraphDef
impl Clone for MetaGraphDef
source§fn clone(&self) -> MetaGraphDef
fn clone(&self) -> MetaGraphDef
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for MetaGraphDef
impl Send for MetaGraphDef
impl Sync for MetaGraphDef
impl Unpin for MetaGraphDef
impl UnwindSafe for MetaGraphDef
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