All Projects → mlverse → Torch

mlverse / Torch

Licence: other
R Interface to Torch

Programming Languages

r
7636 projects

Projects that are alternatives of or similar to Torch

Torchsample
High-Level Training, Data Augmentation, and Utilities for Pytorch
Stars: ✭ 1,731 (+708.88%)
Mutual labels:  torch
Snapshotensemble
Snapshot Ensembles in Torch (Snapshot Ensembles: Train 1, Get M for Free)
Stars: ✭ 173 (-19.16%)
Mutual labels:  torch
Torchinfo
View model summaries in PyTorch!
Stars: ✭ 203 (-5.14%)
Mutual labels:  torch
Synthesize3dviadepthorsil
[CVPR 2017] Generation and reconstruction of 3D shapes via modeling multi-view depth maps or silhouettes
Stars: ✭ 141 (-34.11%)
Mutual labels:  torch
Semantic3dnet
Point cloud semantic segmentation via Deep 3D Convolutional Neural Network
Stars: ✭ 170 (-20.56%)
Mutual labels:  torch
Yolo Face With Landmark
yoloface大礼包 使用pytroch实现的基于yolov3的轻量级人脸检测(包含关键点)
Stars: ✭ 180 (-15.89%)
Mutual labels:  torch
Ganspapercollection
Stars: ✭ 130 (-39.25%)
Mutual labels:  torch
Orn
Oriented Response Networks, in CVPR 2017
Stars: ✭ 207 (-3.27%)
Mutual labels:  torch
Torch Dct
DCT (discrete cosine transform) functions for pytorch
Stars: ✭ 173 (-19.16%)
Mutual labels:  torch
Python Torchfile
Deserialize Lua torch-serialized objects from Python
Stars: ✭ 196 (-8.41%)
Mutual labels:  torch
Samplernn torch
Torch implementation of SampleRNN: An Unconditional End-to-End Neural Audio Generation Model
Stars: ✭ 146 (-31.78%)
Mutual labels:  torch
Dockerfiles
Deep Learning Dockerfiles
Stars: ✭ 150 (-29.91%)
Mutual labels:  torch
Online Neural Doodle
Feedforward neural doodle
Stars: ✭ 183 (-14.49%)
Mutual labels:  torch
Prediction Flow
Deep-Learning based CTR models implemented by PyTorch
Stars: ✭ 138 (-35.51%)
Mutual labels:  torch
Pytorch Beam Search Decoding
PyTorch implementation of beam search decoding for seq2seq models
Stars: ✭ 204 (-4.67%)
Mutual labels:  torch
Neural Style Audio Torch
Torch implementation for audio neural style.
Stars: ✭ 130 (-39.25%)
Mutual labels:  torch
Npmt
Towards Neural Phrase-based Machine Translation
Stars: ✭ 175 (-18.22%)
Mutual labels:  torch
Opennmt
Open Source Neural Machine Translation in Torch (deprecated)
Stars: ✭ 2,339 (+992.99%)
Mutual labels:  torch
Netron
Visualizer for neural network, deep learning, and machine learning models
Stars: ✭ 17,193 (+7934.11%)
Mutual labels:  torch
Php Opencv
php wrapper for opencv
Stars: ✭ 194 (-9.35%)
Mutual labels:  torch

torch

Lifecycle: experimental R build status CRAN status

Installation

torch can be installed from CRAN with:

install.packages("torch")

You can also install the development version with:

remotes::install_github("mlverse/torch")

At the first package load additional software will be installed.

Installation with Docker

If you would like to install with Docker, please read following document.

Examples

You can create torch tensors from R objects with the torch_tensor function and convert them back to R objects with as_array.

library(torch)
x <- array(runif(8), dim = c(2, 2, 2))
y <- torch_tensor(x, dtype = torch_float64())
y
#> torch_tensor
#> (1,.,.) = 
#>   0.9192  0.4962
#>   0.3191  0.3114
#> 
#> (2,.,.) = 
#>   0.7482  0.7318
#>   0.6661  0.8189
#> [ CPUDoubleType{2,2,2} ]
identical(x, as_array(y))
#> [1] TRUE

Simple Autograd Example

In the following snippet we let torch, using the autograd feature, calculate the derivatives:

x <- torch_tensor(1, requires_grad = TRUE)
w <- torch_tensor(2, requires_grad = TRUE)
b <- torch_tensor(3, requires_grad = TRUE)
y <- w * x + b
y$backward()
x$grad
#> torch_tensor
#>  2
#> [ CPUFloatType{1} ]
w$grad
#> torch_tensor
#>  1
#> [ CPUFloatType{1} ]
b$grad
#> torch_tensor
#>  1
#> [ CPUFloatType{1} ]

Contributing

No matter your current skills it’s possible to contribute to torch development. See the contributing guide for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].