Struct tensorflow::eager::raw_ops::DeviceIndex
source · pub struct DeviceIndex { /* private fields */ }
Expand description
DeviceIndex
See : https://www.tensorflow.org/api_docs/python/tf/raw_ops/DeviceIndex
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 target_device_name<ArgType: Into<String>>(self, value: ArgType) -> Self
pub fn target_device_name<ArgType: Into<String>>(self, value: ArgType) -> Self
Sets the `` attribute.
sourcepub fn call<'a>(&self, ctx: &'a Context) -> Result<TensorHandle<'a>>
pub fn call<'a>(&self, ctx: &'a Context) -> Result<TensorHandle<'a>>
Execute device_index.
Trait Implementations§
source§impl Clone for DeviceIndex
impl Clone for DeviceIndex
source§fn clone(&self) -> DeviceIndex
fn clone(&self) -> DeviceIndex
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DeviceIndex
impl Debug for DeviceIndex
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