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 Freeze for MetaGraphDef
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