Enum google_api_proto::google::cloud::aiplatform::v1beta1::AcceleratorType
source · #[repr(i32)]pub enum AcceleratorType {
Show 14 variants
Unspecified = 0,
NvidiaTeslaK80 = 1,
NvidiaTeslaP100 = 2,
NvidiaTeslaV100 = 3,
NvidiaTeslaP4 = 4,
NvidiaTeslaT4 = 5,
NvidiaTeslaA100 = 8,
NvidiaA10080gb = 9,
NvidiaL4 = 11,
NvidiaH10080gb = 13,
TpuV2 = 6,
TpuV3 = 7,
TpuV4Pod = 10,
TpuV5Litepod = 12,
}
Expand description
Represents a hardware accelerator type.
Variants§
Unspecified = 0
Unspecified accelerator type, which means no accelerator.
NvidiaTeslaK80 = 1
Nvidia Tesla K80 GPU.
NvidiaTeslaP100 = 2
Nvidia Tesla P100 GPU.
NvidiaTeslaV100 = 3
Nvidia Tesla V100 GPU.
NvidiaTeslaP4 = 4
Nvidia Tesla P4 GPU.
NvidiaTeslaT4 = 5
Nvidia Tesla T4 GPU.
NvidiaTeslaA100 = 8
Nvidia Tesla A100 GPU.
NvidiaA10080gb = 9
Nvidia A100 80GB GPU.
NvidiaL4 = 11
Nvidia L4 GPU.
NvidiaH10080gb = 13
Nvidia H100 80Gb GPU.
TpuV2 = 6
TPU v2.
TpuV3 = 7
TPU v3.
TpuV4Pod = 10
TPU v4.
TpuV5Litepod = 12
TPU v5.
Implementations§
source§impl AcceleratorType
impl AcceleratorType
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for AcceleratorType
impl Clone for AcceleratorType
source§fn clone(&self) -> AcceleratorType
fn clone(&self) -> AcceleratorType
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 AcceleratorType
impl Debug for AcceleratorType
source§impl Default for AcceleratorType
impl Default for AcceleratorType
source§fn default() -> AcceleratorType
fn default() -> AcceleratorType
Returns the “default value” for a type. Read more
source§impl From<AcceleratorType> for i32
impl From<AcceleratorType> for i32
source§fn from(value: AcceleratorType) -> i32
fn from(value: AcceleratorType) -> i32
Converts to this type from the input type.
source§impl Hash for AcceleratorType
impl Hash for AcceleratorType
source§impl Ord for AcceleratorType
impl Ord for AcceleratorType
source§fn cmp(&self, other: &AcceleratorType) -> Ordering
fn cmp(&self, other: &AcceleratorType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for AcceleratorType
impl PartialEq for AcceleratorType
source§fn eq(&self, other: &AcceleratorType) -> bool
fn eq(&self, other: &AcceleratorType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for AcceleratorType
impl PartialOrd for AcceleratorType
source§fn partial_cmp(&self, other: &AcceleratorType) -> Option<Ordering>
fn partial_cmp(&self, other: &AcceleratorType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for AcceleratorType
impl TryFrom<i32> for AcceleratorType
§type Error = DecodeError
type Error = DecodeError
The type returned in the event of a conversion error.
source§fn try_from(value: i32) -> Result<AcceleratorType, DecodeError>
fn try_from(value: i32) -> Result<AcceleratorType, DecodeError>
Performs the conversion.
impl Copy for AcceleratorType
impl Eq for AcceleratorType
impl StructuralPartialEq for AcceleratorType
Auto Trait Implementations§
impl Freeze for AcceleratorType
impl RefUnwindSafe for AcceleratorType
impl Send for AcceleratorType
impl Sync for AcceleratorType
impl Unpin for AcceleratorType
impl UnwindSafe for AcceleratorType
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request