Skip to content

Latest commit

 

History

History
 
 

lantern

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Lantern

Lantern provides a C API to libtorch. To build in OS X run:

pip install cmake
mkdir build
cd build
cmake ..
make

Headers

To re-generate, first build lanterngen:

cd headers
mkdir build
cd build
cmake ..
make

Followed by running lanterngen with the declarations file:

./lanterngen ../declarations/declarations.yaml ../../src/lantern.cpp ../../include/lantern/lantern.h

Note: Re-generating the headers requires declarations.yaml from building libtorch from source or downloading a pre-built version from dfalbel/declarations.