pub struct TpuDevice {
pub id: u32,
pub name: String,
pub version: TpuVersion,
pub cores: u32,
pub memory_gb: u64,
pub peak_flops: u64,
pub matrix_unit_count: u32,
pub vector_unit_count: u32,
}Expand description
TPU device information
Fields§
§id: u32§name: String§version: TpuVersion§cores: u32§memory_gb: u64§peak_flops: u64§matrix_unit_count: u32§vector_unit_count: u32Trait Implementations§
Auto Trait Implementations§
impl Freeze for TpuDevice
impl RefUnwindSafe for TpuDevice
impl Send for TpuDevice
impl Sync for TpuDevice
impl Unpin for TpuDevice
impl UnsafeUnpin for TpuDevice
impl UnwindSafe for TpuDevice
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more