pub struct WorkloadConstraints {
pub memory_limit: usize,
pub time_limit_ms: u64,
pub power_limit: f32,
pub precision_requirements: Vec<TensorCorePrecision>,
}Expand description
Workload constraints
Fields§
§memory_limit: usizeMemory limit (bytes)
time_limit_ms: u64Time limit (milliseconds)
power_limit: f32Power limit (Watts)
precision_requirements: Vec<TensorCorePrecision>Precision requirements
Trait Implementations§
Source§impl Clone for WorkloadConstraints
impl Clone for WorkloadConstraints
Source§fn clone(&self) -> WorkloadConstraints
fn clone(&self) -> WorkloadConstraints
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 moreAuto Trait Implementations§
impl Freeze for WorkloadConstraints
impl RefUnwindSafe for WorkloadConstraints
impl Send for WorkloadConstraints
impl Sync for WorkloadConstraints
impl Unpin for WorkloadConstraints
impl UnwindSafe for WorkloadConstraints
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