Struct TrainRequest
pub struct TrainRequest { /* private fields */ }Expand description
The typed input to one training operation.
Implementations§
§impl TrainRequest
impl TrainRequest
pub fn new(config: impl Into<PathBuf>) -> Self
pub fn new(config: impl Into<PathBuf>) -> Self
Creates a training request for a materialized configuration file.
pub fn with_resume(self, run: RunHandle) -> Self
pub fn with_resume(self, run: RunHandle) -> Self
Configures the request to resume from run.
pub const fn with_timeout(self, timeout: Duration) -> Self
pub const fn with_timeout(self, timeout: Duration) -> Self
Configures an optional wall-clock timeout for training.
Trait Implementations§
§impl Clone for TrainRequest
impl Clone for TrainRequest
§fn clone(&self) -> TrainRequest
fn clone(&self) -> TrainRequest
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 TrainRequest
impl Debug for TrainRequest
impl Eq for TrainRequest
§impl PartialEq for TrainRequest
impl PartialEq for TrainRequest
impl StructuralPartialEq for TrainRequest
Auto Trait Implementations§
impl Freeze for TrainRequest
impl RefUnwindSafe for TrainRequest
impl Send for TrainRequest
impl Sync for TrainRequest
impl Unpin for TrainRequest
impl UnsafeUnpin for TrainRequest
impl UnwindSafe for TrainRequest
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