Skip to main content

Prepared

Struct Prepared 

Source
pub struct Prepared {
    pub data_path: Option<PathBuf>,
    pub libtorch: Option<(PathBuf, String)>,
    pub bin: Option<Built>,
    pub args: Option<Vec<String>>,
    pub run_id: Option<String>,
}
Expand description

What preparation settled, for the join that follows.

Fields§

§data_path: Option<PathBuf>

Local dataset source root to hand this host’s ranks. None when the box declares no data path — the training binary then keeps its own default, which is what a run that never mentions data expects.

§libtorch: Option<(PathBuf, String)>

The libtorch this box will train against: (variant directory, variant label). Acquired when a spec asked for one, otherwise whatever was already active here. One field rather than two because the answer has one authority: the build links against it and the ranks load from it.

§bin: Option<Built>

The training binary this box built, and the directory it expects as cwd. None when the operator named a binary instead of a source.

§args: Option<Vec<String>>

The run’s arguments, when a controller published them. They replace whatever this box carried: args must match the run, because rank children re-enter the binary with them.

§run_id: Option<String>

The published run’s identity nonce, when the manifest carries one. Rides the join hello so the window can refuse a cohort straddling a publish boundary; None gates nothing.

Trait Implementations§

Source§

impl Debug for Prepared

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Prepared

Source§

fn default() -> Prepared

Returns the “default value” for a type. Read more
Source§

impl Eq for Prepared

Source§

impl PartialEq for Prepared

Source§

fn eq(&self, other: &Prepared) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Prepared

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.