install_torch_from_file: Install Torch from files

View source: R/install.R

install_torch_from_fileR Documentation

Install Torch from files

Description

Installs Torch and its dependencies from files.

Usage

install_torch_from_file(
  version = "1.11.0",
  type = install_type(version = version),
  libtorch,
  liblantern,
  ...
)

Arguments

version

The Torch version to install.

type

The installation type for Torch. Valid values are "cpu" or the 'CUDA' version.

libtorch

The installation archive file to use for Torch. Shall be a "file://" URL scheme.

liblantern

The installation archive file to use for Lantern. Shall be a "file://" URL scheme.

...

other parameters to be passed to "install_torch()"

Details

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()"


torch documentation built on Aug. 19, 2022, 5:08 p.m.