Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

install_torch_from_file

Install Torch from files


Description

Installs Torch and its dependencies from files.

Usage

install_torch_from_file(
  version = "1.8.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

Tensors and Neural Networks with 'GPU' Acceleration

v0.3.0
MIT + file LICENSE
Authors
Daniel Falbel [aut, cre, cph], Javier Luraschi [aut], Dmitriy Selivanov [ctb], Athos Damiani [ctb], Christophe Regouby [ctb], Krzysztof Joachimiak [ctb], RStudio [cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.