machineko / flambeau

Nim bindings to libtorch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flambeau

Flambeau provides Nim bindings to libtorch C++ API and torchvision.

The library is not ready for general use at the moment.

Installation

The library installation including:

  • auto-downloading and deploying of libtorch
  • optional auto-compiling of torchvision into a shared library (if requested)

External dependencies

Initialize submodule : git submodule update --init --recursive

On Ubuntu : sudo apt-get install ffmpeg libpng-dev libjpeg-dev libzip-dev

On OpenSuse : sudo zypper install libpng16-devel libjpeg62-devel libzip-devel ffmpeg

Installation from git clone

git clone https://github.com/SciNim/flambeau

cd flambeau

nimble install or nimble develop

Note that install and develop will download and build libtorch so it may take a while.

Torchvision can now be built if desired:

nimble build_torchvision

Limitations

Compared to Numpy and Arraymancer, Flambeau inherits the following PyTorch limitations:

License

Licensed and distributed under either of

or

at your option. This file may not be copied, modified, or distributed except according to those terms.

About

Nim bindings to libtorch


Languages

Language:Nim 99.8%Language:Shell 0.2%