Skip to content

jpchen/torch.js

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published