Struct tensorflow::ops::Restore
source · pub struct Restore { /* private fields */ }
Expand description
Builder for the Restore
operation.
Implementations§
source§impl Restore
impl Restore
sourcepub fn preferred_shard<ArgType: Into<i64>>(self, value: ArgType) -> Self
pub fn preferred_shard<ArgType: Into<i64>>(self, value: ArgType) -> Self
Sets the preferred_shard
attribute.
sourcepub fn add_control_input(self, op: Operation) -> Self
pub fn add_control_input(self, op: Operation) -> Self
Adds a control input.
sourcepub fn build<O0: Into<Output>, O1: Into<Output>>(
&self,
file_pattern: O0,
tensor_name: O1,
scope: &mut Scope
) -> Result<Operation>
pub fn build<O0: Into<Output>, O1: Into<Output>>( &self, file_pattern: O0, tensor_name: O1, scope: &mut Scope ) -> Result<Operation>
Builds the Restore
operation.
sourcepub fn build_instance(
&self,
file_pattern: Output,
tensor_name: Output,
scope: &mut Scope
) -> Result<RestoreInst>
pub fn build_instance( &self, file_pattern: Output, tensor_name: Output, scope: &mut Scope ) -> Result<RestoreInst>
Builds a new instance of ‘Restore’ Operation with it’s Outputs and Inputs exposed as methods.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Restore
impl Send for Restore
impl Sync for Restore
impl Unpin for Restore
impl UnwindSafe for Restore
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