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