Struct tensorflow::Device
source · pub struct Device {
pub name: String,
pub device_type: String,
pub memory_bytes: i64,
pub incarnation: u64,
}
Expand description
Metadata about a device.
Fields§
§name: String
Full name of the device (e.g. /job:worker/replica:0/…)
device_type: String
Type of device.
memory_bytes: i64
Amount of memory on the device.
incarnation: u64
Incarnation number of the device.
Trait Implementations§
source§impl PartialEq<Device> for Device
impl PartialEq<Device> for Device
impl Eq for Device
impl StructuralEq for Device
impl StructuralPartialEq for Device
Auto Trait Implementations§
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnwindSafe for Device
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