Provides functionality to define and train neural networks similar to
'PyTorch' by Paszke et al (2019) <doi:10.48550/arXiv.1912.01703> but written entirely in R
using the 'libtorch' library. Also supports low-level tensor operations and
'GPU' acceleration.
| Version: |
0.17.0 |
| Imports: |
Rcpp, R6, withr, rlang (≥ 1.0.0), methods, utils, stats, bit64, magrittr, tools, coro (≥ 1.0.2), callr, cli (≥ 3.0.0), glue, desc, safetensors (≥ 0.1.1), jsonlite, scales |
| LinkingTo: |
Rcpp |
| Suggests: |
testthat (≥ 3.0.0), covr, knitr (≥ 1.36), rmarkdown, palmerpenguins, mvtnorm, numDeriv, katex |
| Published: |
2026-04-11 |
| DOI: |
10.32614/CRAN.package.torch |
| Author: |
Tomasz Kalinowski [ctb, cre],
Daniel Falbel [aut, cph],
Javier Luraschi [aut],
Dmitriy Selivanov [ctb],
Athos Damiani [ctb],
Christophe Regouby [ctb],
Krzysztof Joachimiak [ctb],
Hamada S. Badr [ctb],
Sebastian Fischer [ctb],
Maximilian Pichler [ctb],
RStudio [cph] |
| Maintainer: |
Tomasz Kalinowski <tomasz at posit.co> |
| BugReports: |
https://github.com/mlverse/torch/issues |
| License: |
MIT + file LICENSE |
| URL: |
https://torch.mlverse.org/docs, https://github.com/mlverse/torch |
| NeedsCompilation: |
yes |
| SystemRequirements: |
LibTorch (https://pytorch.org/); Only x86_64
platforms are currently supported except for ARM system running
macOS. |
| Materials: |
README, NEWS |
| In views: |
MachineLearning |
| CRAN checks: |
torch results |
| Reverse depends: |
mlr3torch |
| Reverse imports: |
BKTR, brulee, causalOT, chatterbox, circlus, cito, crumble, deepImp, DICErClust, engression, EQRN, glmnetr, innsight, kindling, lambdaTS, LBBNN, luz, madgrad, NNMoMo, PLNmodels, proteus, RGAN, rkaf, scDHA, SCFA, SEMdeep, shrinkGPR, sits, snap, spinner, survalis, survdnn, tabnet, topicmodels.etm, torchdatasets, torchMAUM, torchopt, torchvision, torchvisionlib, unfold, whisper |
| Reverse linking to: |
causalOT, torchvisionlib |
| Reverse suggests: |
amorem, biomod2, bundle, butcher, COTAN, DistributionIV, einops, fairGATE, fairGNN, genderBR, gofigR, GPUmatrix, mlr3resampling, MLwrap, nn2poly, quanteda, riskutility, rtemis, safetensors, shapr, svrep, targets, vetiver |