Some models and code I use to run comparisons between torch in R and pytorch.
The models in R and python have the same number of parameters and should be exactly the same
Use runTorchInR.R to run models in R, and testPytorch.py to run the python models