Struct rusoto_sagemaker::ProductionVariant
source · [−]pub struct ProductionVariant {
pub accelerator_type: Option<String>,
pub core_dump_config: Option<ProductionVariantCoreDumpConfig>,
pub initial_instance_count: i64,
pub initial_variant_weight: Option<f32>,
pub instance_type: String,
pub model_name: String,
pub variant_name: String,
}
Expand description
Identifies a model that you want to host and the resources chosen to deploy for hosting it. If you are deploying multiple models, tell Amazon SageMaker how to distribute traffic among the models by specifying variant weights.
Fields
accelerator_type: Option<String>
The size of the Elastic Inference (EI) instance to use for the production variant. EI instances provide on-demand GPU computing for inference. For more information, see Using Elastic Inference in Amazon SageMaker.
core_dump_config: Option<ProductionVariantCoreDumpConfig>
Specifies configuration for a core dump from the model container when the process crashes.
initial_instance_count: i64
Number of instances to launch initially.
initial_variant_weight: Option<f32>
Determines initial traffic distribution among all of the models that you specify in the endpoint configuration. The traffic to a production variant is determined by the ratio of the VariantWeight
to the sum of all VariantWeight
values across all ProductionVariants. If unspecified, it defaults to 1.0.
instance_type: String
The ML compute instance type.
model_name: String
The name of the model that you want to host. This is the name that you specified when creating the model.
variant_name: String
The name of the production variant.
Trait Implementations
sourceimpl Clone for ProductionVariant
impl Clone for ProductionVariant
sourcefn clone(&self) -> ProductionVariant
fn clone(&self) -> ProductionVariant
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ProductionVariant
impl Debug for ProductionVariant
sourceimpl Default for ProductionVariant
impl Default for ProductionVariant
sourcefn default() -> ProductionVariant
fn default() -> ProductionVariant
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ProductionVariant
impl<'de> Deserialize<'de> for ProductionVariant
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<ProductionVariant> for ProductionVariant
impl PartialEq<ProductionVariant> for ProductionVariant
sourcefn eq(&self, other: &ProductionVariant) -> bool
fn eq(&self, other: &ProductionVariant) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ProductionVariant) -> bool
fn ne(&self, other: &ProductionVariant) -> bool
This method tests for !=
.
sourceimpl Serialize for ProductionVariant
impl Serialize for ProductionVariant
impl StructuralPartialEq for ProductionVariant
Auto Trait Implementations
impl RefUnwindSafe for ProductionVariant
impl Send for ProductionVariant
impl Sync for ProductionVariant
impl Unpin for ProductionVariant
impl UnwindSafe for ProductionVariant
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more