torch
torch copied to clipboard
R Interface to Torch
``` r library(torch) blank_canvas [ CPUFloatType{2,3} ] blank_canvas[3:4, col_idx] # torch_tensor #> 0 0 0 #> 0 0 0 #> [ CPUFloatType{2,3} ] blank_canvas[3:4, 1:3] # torch_tensor #> 0 0...
I'll split this in three sections: - allowing for existing libtorch to be used when building lantern - bug in pytorch cmake config - allowing for existing libtorch to be...
One option to increase securiy of the package is to hardcode the hashes of the files downloaded in [`R/install.R`](https://github.com/mlverse/torch/blob/master/R/install.R) and check the hashes after downloading. This protects against corrupted files...
- [x] bool - [x] element_size - [ ] get_device - [ ] imag - [ ] is_shared - [ ] map_ - [ ] new_ones - [ ] new_tensor...
I'm trying to constrain my solution space to the positive orthant so I'm projecting negative parameters (from nn_embedding()) to 0 at each gradient step. I use: model$lhs_emb$weight$data()[model$lhs_emb$weight$data()
Add some CI infrastructure to test the examples. Shouldn't be at every commit, but perhaps dailies or weekly tests... Examples in vignettes/examples
This allows converting between torch tensors and numpy arrays with no copy: ``` library(torch) x
Explore https://github.com/r-lib/bench#continuous-benchmarking to avoid performance regressions