Install PyTorch and its dependencies
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
method |
Installation method. By default, "auto" automatically finds a method that will work in the local environment. Change the default to force a specific installation method. Note that the "virtualenv" method is not available on Windows (as this isn't supported by PyTorch). Note also that since this command runs without privillege the "system" method is available only on Windows. |
conda |
The path to a |
version |
PyTorch version to install. The "default" version is 1.4.
You can specify a specific PyTorch version with |
envname |
Name of Python or conda environment to install within.
The default environment name is |
extra_packages |
Additional Python packages to install along with
PyTorch. If more than one package use a character vector:
|
restart_session |
Restart R session after installing (note this will only occur within RStudio). |
conda_python_version |
the Python version installed in the created conda
environment. Python 3.4 is installed by default. But you could specify for instance:
|
pip |
logical |
channel |
conda channel. The default channel is |
cuda_version |
string for the cuda toolkit version to install. For example,
to install a specific CUDA version use |
dry_run |
logical, set to TRUE for unit tests, otherwise will execute the command. |
... |
other arguments passed to |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.