Struct aws_sdk_sagemaker::types::builders::InferenceComponentComputeResourceRequirementsBuilder
source · #[non_exhaustive]pub struct InferenceComponentComputeResourceRequirementsBuilder { /* private fields */ }
Expand description
A builder for InferenceComponentComputeResourceRequirements
.
Implementations§
source§impl InferenceComponentComputeResourceRequirementsBuilder
impl InferenceComponentComputeResourceRequirementsBuilder
sourcepub fn number_of_cpu_cores_required(self, input: f32) -> Self
pub fn number_of_cpu_cores_required(self, input: f32) -> Self
The number of CPU cores to allocate to run a model that you assign to an inference component.
sourcepub fn set_number_of_cpu_cores_required(self, input: Option<f32>) -> Self
pub fn set_number_of_cpu_cores_required(self, input: Option<f32>) -> Self
The number of CPU cores to allocate to run a model that you assign to an inference component.
sourcepub fn get_number_of_cpu_cores_required(&self) -> &Option<f32>
pub fn get_number_of_cpu_cores_required(&self) -> &Option<f32>
The number of CPU cores to allocate to run a model that you assign to an inference component.
sourcepub fn number_of_accelerator_devices_required(self, input: f32) -> Self
pub fn number_of_accelerator_devices_required(self, input: f32) -> Self
The number of accelerators to allocate to run a model that you assign to an inference component. Accelerators include GPUs and Amazon Web Services Inferentia.
sourcepub fn set_number_of_accelerator_devices_required(
self,
input: Option<f32>,
) -> Self
pub fn set_number_of_accelerator_devices_required( self, input: Option<f32>, ) -> Self
The number of accelerators to allocate to run a model that you assign to an inference component. Accelerators include GPUs and Amazon Web Services Inferentia.
sourcepub fn get_number_of_accelerator_devices_required(&self) -> &Option<f32>
pub fn get_number_of_accelerator_devices_required(&self) -> &Option<f32>
The number of accelerators to allocate to run a model that you assign to an inference component. Accelerators include GPUs and Amazon Web Services Inferentia.
sourcepub fn min_memory_required_in_mb(self, input: i32) -> Self
pub fn min_memory_required_in_mb(self, input: i32) -> Self
The minimum MB of memory to allocate to run a model that you assign to an inference component.
This field is required.sourcepub fn set_min_memory_required_in_mb(self, input: Option<i32>) -> Self
pub fn set_min_memory_required_in_mb(self, input: Option<i32>) -> Self
The minimum MB of memory to allocate to run a model that you assign to an inference component.
sourcepub fn get_min_memory_required_in_mb(&self) -> &Option<i32>
pub fn get_min_memory_required_in_mb(&self) -> &Option<i32>
The minimum MB of memory to allocate to run a model that you assign to an inference component.
sourcepub fn max_memory_required_in_mb(self, input: i32) -> Self
pub fn max_memory_required_in_mb(self, input: i32) -> Self
The maximum MB of memory to allocate to run a model that you assign to an inference component.
sourcepub fn set_max_memory_required_in_mb(self, input: Option<i32>) -> Self
pub fn set_max_memory_required_in_mb(self, input: Option<i32>) -> Self
The maximum MB of memory to allocate to run a model that you assign to an inference component.
sourcepub fn get_max_memory_required_in_mb(&self) -> &Option<i32>
pub fn get_max_memory_required_in_mb(&self) -> &Option<i32>
The maximum MB of memory to allocate to run a model that you assign to an inference component.
sourcepub fn build(self) -> InferenceComponentComputeResourceRequirements
pub fn build(self) -> InferenceComponentComputeResourceRequirements
Consumes the builder and constructs a InferenceComponentComputeResourceRequirements
.
Trait Implementations§
source§impl Clone for InferenceComponentComputeResourceRequirementsBuilder
impl Clone for InferenceComponentComputeResourceRequirementsBuilder
source§fn clone(&self) -> InferenceComponentComputeResourceRequirementsBuilder
fn clone(&self) -> InferenceComponentComputeResourceRequirementsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for InferenceComponentComputeResourceRequirementsBuilder
impl Default for InferenceComponentComputeResourceRequirementsBuilder
source§fn default() -> InferenceComponentComputeResourceRequirementsBuilder
fn default() -> InferenceComponentComputeResourceRequirementsBuilder
source§impl PartialEq for InferenceComponentComputeResourceRequirementsBuilder
impl PartialEq for InferenceComponentComputeResourceRequirementsBuilder
source§fn eq(
&self,
other: &InferenceComponentComputeResourceRequirementsBuilder,
) -> bool
fn eq( &self, other: &InferenceComponentComputeResourceRequirementsBuilder, ) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InferenceComponentComputeResourceRequirementsBuilder
Auto Trait Implementations§
impl Freeze for InferenceComponentComputeResourceRequirementsBuilder
impl RefUnwindSafe for InferenceComponentComputeResourceRequirementsBuilder
impl Send for InferenceComponentComputeResourceRequirementsBuilder
impl Sync for InferenceComponentComputeResourceRequirementsBuilder
impl Unpin for InferenceComponentComputeResourceRequirementsBuilder
impl UnwindSafe for InferenceComponentComputeResourceRequirementsBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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