-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do I install a specific PyTorch version in rTorch #4
Comments
From the R prompt in RStudio. This will install the latest stable PyTorch for Python 3.6:
This will install PyTorch 1.2 under Python 3.7:
This will install PyTorch 1.5 under Python 3.8:
These commands have been tested in:
|
Hi, I wonder if there is a way for rTorch to choose from among python and pytorch versions already installed in the system without conda. What I mean is like tenorflow-r, where you can use the function use_python('path/to/python/binary") or Sys.setenv(RETICULATE_PYTHON="path/to/python/binary") to choose from the python versions already installed in the system without needing to create a conda along with all the extra junks that it pulls in. I have 4 pythons on my system. python2.7 and python3.5.4 which come with the system and I don't use for developmental purpose. I have python-3.7.8 and 3.8.5 installed in local folders for development (each with its own configuration script) and I have tested tensorflow-r using the use_python function and the RETICULATE_PYTHON environmental variable described above. Is it possible to do something similar with rTorch? OS is Ubuntu Linux. |
OK, it works just like r-tensorflow. use_python() will do the job |
I borrowed functions from reticulate and tensorflow for the PyTorch installation under Python. I adapted those functions for PyTorch. They worked fine until PyTorch 1.2. Then, PyTorch introduced changes that made it a little bit different. So, my function |
Actually I just tested with PyTorch-1.4 and it works. |
Actually it works for PyTorch 1.6.0 as well (I have several pythons installed locally) , except for a small issue with reticulate rstudio/reticulate#836 (comment)
|
Awesome! |
No description provided.
The text was updated successfully, but these errors were encountered: