Struct tensorflow::SavedModelBuilder
source · pub struct SavedModelBuilder { /* private fields */ }
Expand description
Builds a SavedModelSaver, which can be used to save models.
Implementations§
source§impl SavedModelBuilder
impl SavedModelBuilder
sourcepub fn new() -> SavedModelBuilder
pub fn new() -> SavedModelBuilder
Creates a new SavedModelBuilder.
sourcepub fn add_collection(&mut self, key: &str, variables: &[Variable]) -> &mut Self
pub fn add_collection(&mut self, key: &str, variables: &[Variable]) -> &mut Self
Adds a collection to be saved.
sourcepub fn add_signature(
&mut self,
key: &str,
signature_def: SignatureDef
) -> &mut Self
pub fn add_signature( &mut self, key: &str, signature_def: SignatureDef ) -> &mut Self
Adds a signature.
sourcepub fn inject(self, scope: &mut Scope) -> Result<SavedModelSaver>
pub fn inject(self, scope: &mut Scope) -> Result<SavedModelSaver>
Adds ops to the graph necessary for saving and restoring models, returning a SavedModelSaver which handles the actual model saving.
Trait Implementations§
source§impl Debug for SavedModelBuilder
impl Debug for SavedModelBuilder
Auto Trait Implementations§
impl RefUnwindSafe for SavedModelBuilder
impl Send for SavedModelBuilder
impl Sync for SavedModelBuilder
impl Unpin for SavedModelBuilder
impl UnwindSafe for SavedModelBuilder
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