pub struct LibtorchDownloadArgs {
pub cpu: bool,
pub cuda: Option<String>,
pub rocm: Option<String>,
pub path: Option<String>,
pub no_activate: bool,
pub dry_run: bool,
}Expand description
Download a pre-built libtorch variant.
Fields§
§cpu: boolForce the CPU variant.
cuda: Option<String>Pick a specific CUDA version (instead of auto-detect).
rocm: Option<String>Pick an AMD ROCm build instead of CUDA. Both cover the same gfx targets; pick the one matching this host’s own ROCm, since the host runtime loads ahead of the bundled one.
path: Option<String>Install libtorch to this directory (default: project libtorch/).
no_activate: boolDo not activate after download.
dry_run: boolShow what would happen without downloading.
Trait Implementations§
Source§impl Debug for LibtorchDownloadArgs
impl Debug for LibtorchDownloadArgs
Source§impl FdlArgsTrait for LibtorchDownloadArgs
impl FdlArgsTrait for LibtorchDownloadArgs
Source§fn try_parse_from(args: &[String]) -> Result<Self, String>
fn try_parse_from(args: &[String]) -> Result<Self, String>
Parse from an explicit argv slice. First element is the program
name (ignored), following elements are flags/values/positionals.
Source§fn render_help() -> String
fn render_help() -> String
Render
--help to a string.Source§fn render_help_path(argv: &[String]) -> String
fn render_help_path(argv: &[String]) -> String
Render
--help for a specific argv path (program name first, then
the tokens typed). The default ignores the path and returns
Self::render_help — correct for a single struct, whose help is
context-free. Read moreAuto Trait Implementations§
impl Freeze for LibtorchDownloadArgs
impl RefUnwindSafe for LibtorchDownloadArgs
impl Send for LibtorchDownloadArgs
impl Sync for LibtorchDownloadArgs
impl Unpin for LibtorchDownloadArgs
impl UnsafeUnpin for LibtorchDownloadArgs
impl UnwindSafe for LibtorchDownloadArgs
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