Releases: mlverse/torch
Releases · mlverse/torch
v0.17.0
Breaking changes
- Updated to LibTorch 2.8.0 (#1419).
torch_triu_indices()andtorch_tril_indices()now return 1-based indexes (#1382).$indices()now returns 1-based indexes (#1382).
New features
- Added
torch_sitrep()for torch installation situation report (#1415, @cregouby). - Added
%*%operator for torch tensors (#1379, @caio-hamamura). - Added
head()andtail()methods for torch tensors (#1388). - Exported
torch_scaled_dot_product_attention()(#1404). - Exported
torch_sparse_sampled_addmm()(#1427). - Exported
torch_ldexp()(#1407). - Integrated
cudatoolkitR package for CUDA library loading (#1422). - Improved
as_array()support for sparse tensors (#1387).
Bug fixes
- Fixed sparse CSR tensor printing,
to_sparse()crash, andas_array()detection (#1431). - Fixed
dataset()/nn_module()crash wheninitializeparameter is namedd(#1424, @chandraveer-singh). - Fixed
bfloat16not being recognized as a floating point dtype (#1408). - Fixed handling of R longjump exceptions in autograd and tracing callbacks (#1406).
- Fixed redundant
lantern.hinclude causing macro redefinition warning (#1430). - Excluded glibc libraries from dependency bundling (#1397, @TroyHernandez).
- Replaced non-API entry point
Rf_findVarInFramewithR_getVarExfor R 4.6 compatibility (#1421). - Added French translations for 5 missing messages (#1385, @cregouby).
v0.16.3
v0.16.2
v0.16.1
v0.16.0
v0.15.1
v0.15.0
v0.14.2
v0.14.1
v0.14.0
Breaking changes
- Updated to LibTorch v2.5.1 (#1204) -- potentially breaking change!
New features
- Feature: Faster optimizers (
optim_ignite_<name>()) are available: Adam, AdamW, Adagrad, RMSprop,SGD.
These can be used as drop-in replacements foroptim_<name>but are considerably
faster as they wrap the LibTorch implementation of the optimizer.
The biggest speed differences can be observed for complex optimizers such asAdamW.
Bug fixes
torch_iinfo()now support all integer dtypes (#1190 @cregouby)- Fixed float key_padding_mask in
nnf_multi_head_attention_forward()(#1205) - Fix french translation (#1176 @cregouby)
- Trace jitted modules now respect 'train' and 'eval' mode (#1211)
- Fix: Avoid name clashes between multiple calls to
jit_trace(#1246)