pub struct PrepareSpec<'a> {
pub data: DataSpec<'a>,
pub libtorch: Option<&'a str>,
pub active_libtorch: Option<&'a (PathBuf, String)>,
pub source: Option<SourceSpec<'a>>,
pub devices: Option<&'a [u8]>,
}Expand description
Everything this box has to settle before it dials.
Fields§
§data: DataSpec<'a>§libtorch: Option<&'a str>libtorch variant to acquire: auto, cpu, cu126, cu128,
rocm7.0, rocm7.1. None leaves this box on whatever it
already has.
active_libtorch: Option<&'a (PathBuf, String)>This box’s already-active libtorch, when fdl found one. Used when no variant is acquired, and it is what the build links against.
source: Option<SourceSpec<'a>>Training source to fetch and build. None when the operator
named an existing binary.
devices: Option<&'a [u8]>Device ids this box will offer (--devices); None = all
visible. The arch-coverage gate scopes to these: a half-covered
box explicitly offering only its covered card is a working box.
Trait Implementations§
Source§impl<'a> Debug for PrepareSpec<'a>
impl<'a> Debug for PrepareSpec<'a>
Source§impl<'a> Default for PrepareSpec<'a>
impl<'a> Default for PrepareSpec<'a>
Source§fn default() -> PrepareSpec<'a>
fn default() -> PrepareSpec<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for PrepareSpec<'a>
impl<'a> RefUnwindSafe for PrepareSpec<'a>
impl<'a> Send for PrepareSpec<'a>
impl<'a> Sync for PrepareSpec<'a>
impl<'a> Unpin for PrepareSpec<'a>
impl<'a> UnsafeUnpin for PrepareSpec<'a>
impl<'a> UnwindSafe for PrepareSpec<'a>
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