NEWS.md
gc
when torch might need more memory (#402)nn_module
(#417)requires_grad
attribute using the $<-
operator (#419)length
method for the nn_sequential
container. (#423)nnf_normalize
and x$norm()
as they were not able to be called (#409)coro::exhausted
intead of raising stop_iteration_error
when the dataloader exceeds. (#366)torch_argsort
and x$argsort
to return 1-based indexes (#342)torch_argmax
, torch_argmin
, x$argmax()
and x$argmin()
return 1-based indexes. (#389)$element_size()
method (@dirkschumacher #322)$bool()
method (@dirkschumacher #323)torch__addr
and torch__addr_
have been removed as they are no longer available in LibTorch 1.7.long
tensors to R and there’s a chance of an integer overflow. (#347)private
and active
methods in nn_module
’s and dataset
’s. (#349)nn_batch_norm3d
(@mattwarkentin #354)nn_lstm
and nn_gru
modules. (#362)nn_module
UI by improving autocomplete support and adding a print method (#391)grad_fn
of a Tensor that doesn’t have one. See (#321)torch_norm
so it can be called with a dim
argument. (#345)torch_hann_window
with an invalid NULL
window_length
. (#351)torch_stft
calls for LibTorch 1.7 (added the return_complex
argument) (#355)nvcc --version
instead of nvidia-smi
to find the CUDA version as nvidia-smi
reports the latest supported version and not the installed one. (#363)RandomSampler(replacement = TRUE)
to never take the last element in the dataset. (84861fa)torch_topk
and x$topk
so the returned indexes are 1-based (#280)1 - torch_tensor(1, device = "cuda")
to fail because 1
was created in the CPU. (#279)dataloader
output (#286)torch_narrow
, Tensor$narrow()
and Tensor$narrow_copy
are now indexed starting at 1. (#294)Tensor$is_leaf
is now an active method. (#295)torch_einsum
. (#296)nn_module_list()
to correctly name added modules, otherwise they are not returned when doing state_dict()
on it. (#300)nn_batchnorm*
so it returns the same results as PyTorch (#302)nn_module$parameter
when there were shared parameters between layers. (#306)$max
and $min
to return 1-based indexes. (#315)utils_data_default_collate
to support converting R objects to torch tensors when needed. (#269)as.matrix
method for torch Tensors. (#282)print(totrch_tensor(1:40))
if it spans for more than 30 lines. This is useful for not spamming the console or taking very long to print when you print a very large tensor. (#283)nnf_contrib_sparsemax
and nn_contrib_sparsemax
. (#309)