Enum google_api_proto::google::cloud::notebooks::v1::execution_template::SchedulerAcceleratorType
source · #[repr(i32)]pub enum SchedulerAcceleratorType {
Unspecified = 0,
NvidiaTeslaK80 = 1,
NvidiaTeslaP100 = 2,
NvidiaTeslaV100 = 3,
NvidiaTeslaP4 = 4,
NvidiaTeslaT4 = 5,
NvidiaTeslaA100 = 10,
TpuV2 = 6,
TpuV3 = 7,
}
Expand description
Hardware accelerator types for AI Platform Training jobs.
Variants§
Unspecified = 0
Unspecified accelerator type. Default to no GPU.
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 = 10
Nvidia Tesla A100 GPU.
TpuV2 = 6
TPU v2.
TpuV3 = 7
TPU v3.
Implementations§
source§impl SchedulerAcceleratorType
impl SchedulerAcceleratorType
sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true
if value
is a variant of SchedulerAcceleratorType
.
sourcepub fn from_i32(value: i32) -> Option<SchedulerAcceleratorType>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<SchedulerAcceleratorType>
Converts an i32
to a SchedulerAcceleratorType
, or None
if value
is not a valid variant.
source§impl SchedulerAcceleratorType
impl SchedulerAcceleratorType
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 SchedulerAcceleratorType
impl Clone for SchedulerAcceleratorType
source§fn clone(&self) -> SchedulerAcceleratorType
fn clone(&self) -> SchedulerAcceleratorType
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 SchedulerAcceleratorType
impl Debug for SchedulerAcceleratorType
source§impl Default for SchedulerAcceleratorType
impl Default for SchedulerAcceleratorType
source§fn default() -> SchedulerAcceleratorType
fn default() -> SchedulerAcceleratorType
Returns the “default value” for a type. Read more
source§impl From<SchedulerAcceleratorType> for i32
impl From<SchedulerAcceleratorType> for i32
source§fn from(value: SchedulerAcceleratorType) -> i32
fn from(value: SchedulerAcceleratorType) -> i32
Converts to this type from the input type.
source§impl Hash for SchedulerAcceleratorType
impl Hash for SchedulerAcceleratorType
source§impl Ord for SchedulerAcceleratorType
impl Ord for SchedulerAcceleratorType
source§fn cmp(&self, other: &SchedulerAcceleratorType) -> Ordering
fn cmp(&self, other: &SchedulerAcceleratorType) -> 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 SchedulerAcceleratorType
impl PartialEq for SchedulerAcceleratorType
source§fn eq(&self, other: &SchedulerAcceleratorType) -> bool
fn eq(&self, other: &SchedulerAcceleratorType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SchedulerAcceleratorType
impl PartialOrd for SchedulerAcceleratorType
source§fn partial_cmp(&self, other: &SchedulerAcceleratorType) -> Option<Ordering>
fn partial_cmp(&self, other: &SchedulerAcceleratorType) -> 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 SchedulerAcceleratorType
impl TryFrom<i32> for SchedulerAcceleratorType
§type Error = DecodeError
type Error = DecodeError
The type returned in the event of a conversion error.
source§fn try_from(value: i32) -> Result<SchedulerAcceleratorType, DecodeError>
fn try_from(value: i32) -> Result<SchedulerAcceleratorType, DecodeError>
Performs the conversion.
impl Copy for SchedulerAcceleratorType
impl Eq for SchedulerAcceleratorType
impl StructuralPartialEq for SchedulerAcceleratorType
Auto Trait Implementations§
impl Freeze for SchedulerAcceleratorType
impl RefUnwindSafe for SchedulerAcceleratorType
impl Send for SchedulerAcceleratorType
impl Sync for SchedulerAcceleratorType
impl Unpin for SchedulerAcceleratorType
impl UnwindSafe for SchedulerAcceleratorType
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