Struct tensorflow::SavedModelBundle
source · pub struct SavedModelBundle {
pub session: Session,
pub meta_graph_def: Vec<u8>,
/* private fields */
}
Expand description
Aggregation type for a saved model bundle.
Fields§
§session: Session
The loaded session.
meta_graph_def: Vec<u8>
👎Deprecated since 0.16.0: Please use SavedModelBundle::meta_graph_def() instead
A meta graph definition as raw protocol buffer. This is deprecated in favour of the deserialized type.
Implementations§
source§impl SavedModelBundle
impl SavedModelBundle
sourcepub fn load<P: AsRef<Path>, Tag: AsRef<str>, Tags: IntoIterator<Item = Tag>>(
options: &SessionOptions,
tags: Tags,
graph: &mut Graph,
export_dir: P
) -> Result<SavedModelBundle>
pub fn load<P: AsRef<Path>, Tag: AsRef<str>, Tags: IntoIterator<Item = Tag>>( options: &SessionOptions, tags: Tags, graph: &mut Graph, export_dir: P ) -> Result<SavedModelBundle>
Loads a session from an exported model, creating a bundle
sourcepub fn meta_graph_def(&self) -> &MetaGraphDef
pub fn meta_graph_def(&self) -> &MetaGraphDef
Returns the metagraph definition for the saved model.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for SavedModelBundle
impl Send for SavedModelBundle
impl Sync for SavedModelBundle
impl Unpin for SavedModelBundle
impl UnwindSafe for SavedModelBundle
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