torch
torch copied to clipboard
R Interface to Torch
Hi, I’m not able to save and load a checkpoint model for resuming training in R. I am only able to work out an R procedure that saves the entire...
When `torch.load` a `.pt` tensor file generated in R to python it fails: `UnpicklingError: invalid load key, '\x1f'.`
https://pytorch.org/docs/stable/generated/torch.nn.DataParallel.html See https://community.rstudio.com/t/how-to-use-torch-nn-dataparallel-in-r/105754
When I try to convert a GPU tensor to an R matrix using `as_array(my_tensor$cpu())`, I get the following error: Not sure what the memory format error is caused by. Any...
Currently in the R package there's no way to apply a module along a dimension except for when the module is `nn_linear`. possible impl: https://pytorch.org/docs/master/generated/torch.vmap.html https://github.com/zou3519/functorch
The current error message is not helpful at all: ``` Error in torch_relu(input) : argument "input" is missing, with no default ``` ``` r library(torch) nn_sequential( nnf_relu() ) #> Error...
Runtime
Hi all, first of all, I am very excited about this project because I’m already using pytorch in my own R package (via the torch pip wheel) and the prospect...
Hello, `torch_bernoulli()` distribution is failing on CUDA device with the following error message ``` Error in (function (self, generator) : Expected a 'cuda' device type for generator but found 'cpu'...
Having an "Example" / Vignette that does image classification would be a useful and accessible example that does something "interesting." Ideally it should: - use best practices - classify images...