pub struct AIInferenceWorkload {
pub model_params: ModelParameters,
pub inference_config: InferenceConfig,
pub metadata: WorkloadMetadata,
}Expand description
AI inference workload implementation
Fields§
§model_params: ModelParametersModel parameters
inference_config: InferenceConfigInference configuration
metadata: WorkloadMetadataMetadata
Implementations§
Source§impl AIInferenceWorkload
impl AIInferenceWorkload
Sourcepub fn new(model_params: ModelParameters) -> Self
pub fn new(model_params: ModelParameters) -> Self
Create a new AI inference workload
Sourcepub fn with_config(self, config: InferenceConfig) -> Self
pub fn with_config(self, config: InferenceConfig) -> Self
Set inference configuration
Sourcepub fn with_metadata(self, metadata: WorkloadMetadata) -> Self
pub fn with_metadata(self, metadata: WorkloadMetadata) -> Self
Set metadata
Trait Implementations§
Source§impl Clone for AIInferenceWorkload
impl Clone for AIInferenceWorkload
Source§fn clone(&self) -> AIInferenceWorkload
fn clone(&self) -> AIInferenceWorkload
Returns a duplicate 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 AIInferenceWorkload
impl Debug for AIInferenceWorkload
Source§impl<'de> Deserialize<'de> for AIInferenceWorkload
impl<'de> Deserialize<'de> for AIInferenceWorkload
Source§fn 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
Source§impl Serialize for AIInferenceWorkload
impl Serialize for AIInferenceWorkload
Source§impl Workload for AIInferenceWorkload
impl Workload for AIInferenceWorkload
Source§fn workload_type(&self) -> WorkloadType
fn workload_type(&self) -> WorkloadType
Get the workload type
Source§fn resource_requirements(&self) -> Vec<ResourceRequirement>
fn resource_requirements(&self) -> Vec<ResourceRequirement>
Get resource requirements for this workload
Source§fn estimated_utilization(&self) -> HashMap<ResourceType, f64>
fn estimated_utilization(&self) -> HashMap<ResourceType, f64>
Get estimated resource utilization
Source§fn performance_characteristics(&self) -> PerformanceCharacteristics
fn performance_characteristics(&self) -> PerformanceCharacteristics
Get performance characteristics
Source§fn metadata(&self) -> WorkloadMetadata
fn metadata(&self) -> WorkloadMetadata
Get workload metadata
Source§fn clone_workload(&self) -> Box<dyn Workload>
fn clone_workload(&self) -> Box<dyn Workload>
Clone the workload (for trait objects)
Auto Trait Implementations§
impl Freeze for AIInferenceWorkload
impl RefUnwindSafe for AIInferenceWorkload
impl Send for AIInferenceWorkload
impl Sync for AIInferenceWorkload
impl Unpin for AIInferenceWorkload
impl UnwindSafe for AIInferenceWorkload
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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