/torch.js

Node FFI bindings for Torch

Primary LanguageJavaScriptMIT LicenseMIT

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