Struct tensorflow::ops::VarHandleOp
source · pub struct VarHandleOp { /* private fields */ }
Expand description
Builder for the VarHandleOp
operation.
Implementations§
source§impl VarHandleOp
impl VarHandleOp
sourcepub fn container<ArgType: Into<String>>(self, value: ArgType) -> Self
pub fn container<ArgType: Into<String>>(self, value: ArgType) -> Self
Sets the container
attribute.
Sets the shared_name
attribute.
sourcepub fn allowed_devices<ArgType: Into<Vec<String>>>(self, value: ArgType) -> Self
pub fn allowed_devices<ArgType: Into<Vec<String>>>(self, value: ArgType) -> Self
Sets the allowed_devices
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_instance(&self, scope: &mut Scope) -> Result<VarHandleOpInst>
pub fn build_instance(&self, scope: &mut Scope) -> Result<VarHandleOpInst>
Builds a new instance of ‘VarHandleOp’ Operation with it’s Outputs and Inputs exposed as methods.
Trait Implementations§
source§impl Debug for VarHandleOp
impl Debug for VarHandleOp
source§impl Default for VarHandleOp
impl Default for VarHandleOp
source§fn default() -> VarHandleOp
fn default() -> VarHandleOp
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for VarHandleOp
impl Send for VarHandleOp
impl Sync for VarHandleOp
impl Unpin for VarHandleOp
impl UnwindSafe for VarHandleOp
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