jpchen / torch.js

Node FFI bindings for Torch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

torch.js

nodejs bindings for libTH (tensor library that powers torch). for fun!

# download and install dependencies
git clone https://github.com/soumith/torch.js.git
cd torch.js && npm install

# for OSX
export DYLD_LIBRARY_PATH=[path to libTH.dylib]

# for Linux 
export LD_LIBRARY_PATH=[path to libTH.so]

#run generate.sh
sh generate.sh

# run the test to see the magic happen
node test.js

About

Node FFI bindings for Torch

License:MIT License


Languages

Language:JavaScript 50.8%Language:C 32.2%Language:Makefile 7.9%Language:CMake 5.8%Language:C++ 3.2%Language:Lua 0.1%Language:Shell 0.1%Language:Objective-C 0.0%