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