pub struct ComputationalConstraints {
pub max_training_time: Option<f64>,
pub max_memory_gb: Option<f64>,
pub max_model_size_mb: Option<f64>,
pub max_inference_time_ms: Option<f64>,
pub n_cores: Option<usize>,
pub has_gpu: bool,
}Expand description
Computational constraints for algorithm selection
Fields§
§max_training_time: Option<f64>Maximum training time in seconds
max_memory_gb: Option<f64>Maximum memory usage in GB
max_model_size_mb: Option<f64>Maximum model size in MB
max_inference_time_ms: Option<f64>Maximum inference time per sample in milliseconds
n_cores: Option<usize>Available CPU cores
has_gpu: boolGPU availability
Trait Implementations§
Source§impl Clone for ComputationalConstraints
impl Clone for ComputationalConstraints
Source§fn clone(&self) -> ComputationalConstraints
fn clone(&self) -> ComputationalConstraints
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 ComputationalConstraints
impl Debug for ComputationalConstraints
Source§impl Default for ComputationalConstraints
impl Default for ComputationalConstraints
Source§fn default() -> ComputationalConstraints
fn default() -> ComputationalConstraints
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ComputationalConstraints
impl RefUnwindSafe for ComputationalConstraints
impl Send for ComputationalConstraints
impl Sync for ComputationalConstraints
impl Unpin for ComputationalConstraints
impl UnwindSafe for ComputationalConstraints
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> 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