pub fn is_valid_variant(root: &Path, variant: &str) -> bool
Check whether a libtorch variant directory looks valid (has lib/).