Installs Torch and its dependencies from files.
install_torch_from_file(
version = "1.11.0",
type = install_type(version = version),
libtorch,
liblantern,
...
)
The Torch version to install.
The installation type for Torch. Valid values are "cpu"
or the 'CUDA' version.
The installation archive file to use for Torch. Shall be a "file://"
URL scheme.
The installation archive file to use for Lantern. Shall be a "file://"
URL scheme.
other parameters to be passed to "install_torch()"
When "install_torch()"
initiated download is not possible, but installation archive files are
present on local filesystem, "install_torch_from_file()"
can be used as a workaround to installation issue.
"libtorch"
is the archive containing all torch modules, and "liblantern"
is the C interface to libtorch
that is used for the R package. Both are highly dependent, and should be checked through "get_install_libs_url()"