Enum ResourceUnit
pub enum ResourceUnit {
Steps,
Episodes,
Walltime,
Custom(String),
}Expand description
What the step of an intermediate report counts.
Declaring the unit is what makes multi-fidelity scheduling explicit instead
of “whatever step meant to the caller” (report intermediate
values):
a budget of 1e6 steps and a budget of 1e6 episodes are wildly different
runs, and a scheduler that rations fidelity has to know which it is.
Variants§
Steps
Environment steps — the RL default.
Episodes
Completed episodes.
Walltime
Milliseconds of wall time.
Custom(String)
A caller-defined unit ("epochs", "samples", …).
Implementations§
§impl ResourceUnit
impl ResourceUnit
Trait Implementations§
§impl Clone for ResourceUnit
impl Clone for ResourceUnit
§fn clone(&self) -> ResourceUnit
fn clone(&self) -> ResourceUnit
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for ResourceUnit
impl Debug for ResourceUnit
§impl Default for ResourceUnit
impl Default for ResourceUnit
§fn default() -> ResourceUnit
fn default() -> ResourceUnit
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for ResourceUnit
impl<'de> Deserialize<'de> for ResourceUnit
§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
impl Eq for ResourceUnit
§impl Hash for ResourceUnit
impl Hash for ResourceUnit
§impl PartialEq for ResourceUnit
impl PartialEq for ResourceUnit
§impl Serialize for ResourceUnit
impl Serialize for ResourceUnit
impl StructuralPartialEq for ResourceUnit
Auto Trait Implementations§
impl Freeze for ResourceUnit
impl RefUnwindSafe for ResourceUnit
impl Send for ResourceUnit
impl Sync for ResourceUnit
impl Unpin for ResourceUnit
impl UnsafeUnpin for ResourceUnit
impl UnwindSafe for ResourceUnit
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