Struct aws_sdk_sagemaker::types::builders::MultiModelConfigBuilder
source · #[non_exhaustive]pub struct MultiModelConfigBuilder { /* private fields */ }
Expand description
A builder for MultiModelConfig
.
Implementations§
source§impl MultiModelConfigBuilder
impl MultiModelConfigBuilder
sourcepub fn model_cache_setting(self, input: ModelCacheSetting) -> Self
pub fn model_cache_setting(self, input: ModelCacheSetting) -> Self
Whether to cache models for a multi-model endpoint. By default, multi-model endpoints cache models so that a model does not have to be loaded into memory each time it is invoked. Some use cases do not benefit from model caching. For example, if an endpoint hosts a large number of models that are each invoked infrequently, the endpoint might perform better if you disable model caching. To disable model caching, set the value of this parameter to Disabled
.
sourcepub fn set_model_cache_setting(self, input: Option<ModelCacheSetting>) -> Self
pub fn set_model_cache_setting(self, input: Option<ModelCacheSetting>) -> Self
Whether to cache models for a multi-model endpoint. By default, multi-model endpoints cache models so that a model does not have to be loaded into memory each time it is invoked. Some use cases do not benefit from model caching. For example, if an endpoint hosts a large number of models that are each invoked infrequently, the endpoint might perform better if you disable model caching. To disable model caching, set the value of this parameter to Disabled
.
sourcepub fn get_model_cache_setting(&self) -> &Option<ModelCacheSetting>
pub fn get_model_cache_setting(&self) -> &Option<ModelCacheSetting>
Whether to cache models for a multi-model endpoint. By default, multi-model endpoints cache models so that a model does not have to be loaded into memory each time it is invoked. Some use cases do not benefit from model caching. For example, if an endpoint hosts a large number of models that are each invoked infrequently, the endpoint might perform better if you disable model caching. To disable model caching, set the value of this parameter to Disabled
.
sourcepub fn build(self) -> MultiModelConfig
pub fn build(self) -> MultiModelConfig
Consumes the builder and constructs a MultiModelConfig
.
Trait Implementations§
source§impl Clone for MultiModelConfigBuilder
impl Clone for MultiModelConfigBuilder
source§fn clone(&self) -> MultiModelConfigBuilder
fn clone(&self) -> MultiModelConfigBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MultiModelConfigBuilder
impl Debug for MultiModelConfigBuilder
source§impl Default for MultiModelConfigBuilder
impl Default for MultiModelConfigBuilder
source§fn default() -> MultiModelConfigBuilder
fn default() -> MultiModelConfigBuilder
source§impl PartialEq for MultiModelConfigBuilder
impl PartialEq for MultiModelConfigBuilder
impl StructuralPartialEq for MultiModelConfigBuilder
Auto Trait Implementations§
impl Freeze for MultiModelConfigBuilder
impl RefUnwindSafe for MultiModelConfigBuilder
impl Send for MultiModelConfigBuilder
impl Sync for MultiModelConfigBuilder
impl Unpin for MultiModelConfigBuilder
impl UnwindSafe for MultiModelConfigBuilder
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