rTorch - a PyTorch wrapper in R

16 October 2020
 GitHub

rTorch

The goal of rTorch is providing an R wrapper to PyTorch. rTorch provides all the functionality of PyTorch plus all the features that R provides. We have borrowed some ideas and code used in R tensorflow to implement rTorch.

Besides the module torch, which directly provides PyTorch methods, classes and functions, the package also provides the modules numpy as a method called np, and torchvision, as well. The dollar sign $ after the module will provide you access to all their sub-objects.

rTorch Examples

To lighten up the time in building this rTorch package, we moved the examples that use tensor operations and neural networks to separate repositories. There are two sets of examples:

rTorch installation

rTorch is available via CRAN and from GitHub.


« Debugging rTorch with Docker and Travis | rTorch, a minimal book »