pub struct LibtorchStatus {
pub info: Option<LibtorchInfo>,
pub valid_dir: bool,
pub archs_match: Vec<(u8, bool)>,
}Expand description
libtorch directory + arch metadata + per-GPU compatibility verdict.
Fields§
§info: Option<LibtorchInfo>Parsed .arch metadata (if libtorch is present + readable).
valid_dir: boollib/ subdirectory present (cheap “is this a libtorch dir?”
check that doesn’t require parsing).
archs_match: Vec<(u8, bool)>Per-GPU (gpu_index, archs_cover_this_gpu). Empty when libtorch
is missing.
Auto Trait Implementations§
impl Freeze for LibtorchStatus
impl RefUnwindSafe for LibtorchStatus
impl Send for LibtorchStatus
impl Sync for LibtorchStatus
impl Unpin for LibtorchStatus
impl UnsafeUnpin for LibtorchStatus
impl UnwindSafe for LibtorchStatus
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