# torch 0.16.3 to 0.17.0 (CRAN)

Part of: [torch](/cran/torch.md)

[Record of 0.16.3](/cran/torch/v/0.16.3.md) | [Record of 0.17.0](/cran/torch/v/0.17.0.md) | [Both records side by side](/cran/torch/compare/0.16.3...0.17.0.md?view=record)

Every release of torch: 32 releases from 6 Aug 2020 to 29 Oct 2026, 0.16.3 and 0.17.0 lit.

No release lies between 0.16.3 and 0.17.0.

- Time between: 160 days (no release between)
- Advisories: None known (for either release)
- Exports: 6 added (none removed)
- Dependencies: No change (in any field)
- Licence: Same (MIT + file LICENSE)
- Maintainer: Changed (now Tomasz Kalinowski)

## Downloads while newest

[Method](/about/downloads.md)

| Release | Days newest | Days counted | CRAN downloads | Daily mean |
| --- | ---: | ---: | ---: | ---: |
| **0.17.0** 11 Apr to 29 Oct 2026, still the newest | 202 | 200 | 207,872 | 1,039 |
| **0.16.3** 2 Nov 2025 to 10 Apr 2026 | 160 |  | 81,152 | 507 |

Daily mean while newest, 0.17.0: up 105% since 0.16.3.

Counted on the CRAN mirror from each release's day to the day before the next release. This copy's daily series ends on 27 Oct 2026, so a span that runs past it is counted to that day and its daily mean covers the days counted. Other channels repackage on their own schedules, so they are not split by release.

## Exports

#### + Added (6)

- `install_torch_sitrep`
- `torch_float8_e4m3fn`
- `torch_float8_e5m2`
- `torch_ldexp`
- `torch_scaled_dot_product_attention`
- `torch_sparse_sampled_addmm`

## Licence and people

[Method](/about/licenses.md)

|  | Part | 0.16.3 | 0.17.0 |
| --- | --- | --- | --- |
| → | Maintainer | Daniel Falbel | Tomasz Kalinowski |
| + | Person named | – | Tomasz Kalinowski |
| → | Daniel Falbel | aut, cre, cph | aut, cph |

**Side by side**

| Measure | 0.16.3 | 0.17.0 | Change |
| --- | --- | --- | ---: |
| Licence | MIT + file LICENSE | MIT + file LICENSE |  |
| Maintainer | Daniel Falbel | Tomasz Kalinowski | changed |
| People named | Daniel Falbel, Javier Luraschi, Dmitriy Selivanov, Athos Damiani, Christophe Regouby, Krzysztof Joachimiak, Hamada S. Badr, Sebastian Fischer, Maximilian Pichler, RStudio | Tomasz Kalinowski, Daniel Falbel, Javier Luraschi, Dmitriy Selivanov, Athos Damiani, Christophe Regouby, Krzysztof Joachimiak, Hamada S. Badr, Sebastian Fischer, Maximilian Pichler, RStudio | changed |

## Code

[Method](/about/code-metrics.md)

| Measure | 0.16.3 | 0.17.0 | Change |
| --- | ---: | ---: | ---: |
| Lines of R code | 101,309 | 102,571 | +1,262 |
| Lines of compiled code | 79,567 | 80,023 | +456 |
| Files | 1,035 | 1,037 | +2 |
| Public exports | 749 | 755 | +6 |
| Internal functions | 6,256 | 6,280 | +24 |
| Highest complexity | 46 | 155 | +109 |
| Download size | 1.8 MB | 1.9 MB | +137 KB |
| Source, unpacked | 18.2 MB | 23.1 MB | +4.9 MB |

1 other figure of the code is the same in both.

**Side by side**

| Measure | 0.16.3 | 0.17.0 | Change |
| --- | --- | --- | ---: |
| Lines of R code | 101,309 | 102,571 | +1,262 |
| Lines of compiled code | 79,567 | 80,023 | +456 |
| Files | 1,035 | 1,037 | +2 |
| Public exports | 749 | 755 | +6 |
| Internal functions | 6,256 | 6,280 | +24 |
| Mean complexity | 1.1 | 1.1 |  |
| Highest complexity | 46 | 155 | +109 |
| Download size | 1.8 MB | 1.9 MB | +137 KB |
| Source, unpacked | 18.2 MB | 23.1 MB | +4.9 MB |
| Analysed with | rpkg-analyzer 0.5.2 | rpkg-analyzer 0.5.2 |  |

## Tests

[Method](/about/coverage.md)

| Measure | 0.16.3 | 0.17.0 | Change |
| --- | ---: | ---: | ---: |
| Lines run by tests | Not measured | 0.3% |  |
| Test cases | 718 | 735 | +17 |
| Lines of tests | 11,594 | 11,858 | +264 |
| Test lines per line of code | 0.11 | 0.12 | +0.01 |
| Exports named in tests | 45.9% | 46.0% | +0.1 points |

Test coverage is measured on each CRAN package's newest release since July 2026.

**Side by side**

| Measure | 0.16.3 | 0.17.0 | Change |
| --- | --- | --- | ---: |
| Lines run by tests | Not measured | 0.3% |  |
| Test cases | 718 | 735 | +17 |
| Lines of tests | 11,594 | 11,858 | +264 |
| Test lines per line of code | 0.11 | 0.12 | +0.01 |
| Exports named in tests | 45.9% | 46.0% | +0.1 points |

## Documentation

[Method](/about/code-metrics.md)

| Measure | 0.16.3 | 0.17.0 | Change |
| --- | ---: | ---: | ---: |
| Return value documented | 6.0% | 6.2% | +0.2 points |
| Lines of documentation | 30,174 | 30,397 | +223 |
| Lines of guides | 3,822 | 3,872 | +50 |

2 other figures of the documentation are the same in both.

**Side by side**

| Measure | 0.16.3 | 0.17.0 | Change |
| --- | --- | --- | ---: |
| Exports documented | 99.9% | 99.9% |  |
| Arguments documented | 100.0% | 100.0% |  |
| Return value documented | 6.0% | 6.2% | +0.2 points |
| Lines of documentation | 30,174 | 30,397 | +223 |
| Lines of guides | 3,822 | 3,872 | +50 |

## Files changed

- Files changed: 66 (in 0.17.0)
- Lines added: 217,179
- Lines deleted: 655

**Most changed files (12 of 66)**

| File | Lines added | Lines deleted |
| --- | ---: | ---: |
| `tools/torchgen/inst/declaration/Declarations-2.8.0.yaml` | 213,851 | 0 |
| `R/install.R` | 917 | 47 |
| `src/RcppExports.cpp` | 384 | 90 |
| `po/R-fr.po` | 190 | 93 |
| `R/gen-namespace.R` | 165 | 110 |
| `po/R-torch.pot` | 162 | 74 |
| `src/gen-namespace.cpp` | 131 | 36 |
| `R/RcppExports.R` | 112 | 36 |
| `R/gen-namespace-docs.R` | 133 | 4 |
| `MD5` | 62 | 60 |
| `inst/include/lantern/lantern.h` | 93 | 21 |
| `tests/testthat/test-tensor.R` | 103 | 0 |

Each release is counted against the release before it, so a line changed twice counts twice.

## Release notes

From the NEWS file of 0.17.0. Only the section for the newest release on record is kept.

- Updated to LibTorch 2.8.0 (#1419).
- `torch_triu_indices()` and `torch_tril_indices()` now return 1-based indexes (#1382).
- `$indices()` now returns 1-based indexes (#1382).
- Added `torch_sitrep()` for torch installation situation report (#1415, @cregouby).
- Added `%*%` operator for torch tensors (#1379, @caio-hamamura).
- Added `head()` and `tail()` methods for torch tensors (#1388).
- Exported `torch_scaled_dot_product_attention()` (#1404).
- Exported `torch_sparse_sampled_addmm()` (#1427).
- Exported `torch_ldexp()` (#1407).
- Integrated `cudatoolkit` R package for CUDA library loading (#1422).
- Improved `as_array()` support for sparse tensors (#1387).
- Fixed sparse CSR tensor printing, `to_sparse()` crash, and `as_array()` detection (#1431).
- Fixed `dataset()`/`nn_module()` crash when `initialize` parameter is named `d` (#1424, @Chandraveer-Singh).
- Fixed `bfloat16` not being recognized as a floating point dtype (#1408).
- Fixed handling of R longjump exceptions in autograd and tracing callbacks (#1406).
- Fixed redundant `lantern.h` include causing macro redefinition warning (#1430).
- Excluded glibc libraries from dependency bundling (#1397, @troyhernandez).
- Replaced non-API entry point `Rf_findVarInFrame` with `R_getVarEx` for R 4.6 compatibility (#1421).
- Added French translations for 5 missing messages (#1385, @cregouby).

## Unchanged and not compared

Dependencies and licence are the same in both releases. No advisory is known for either release.

Checks, the install tree, dependents and the repository describe the package as it is now, so they are on the package page.

---

R Observatory is independent of the R Project, CRAN and Bioconductor. The same page for people is at /cran/torch/compare/0.16.3...0.17.0, and every address is listed at /llms.txt.
