All Projects → aditya-khant → neural-assembly-compiler

aditya-khant / neural-assembly-compiler

Licence: GPL-3.0 license
A neural assembly compiler for pyTorch based on adaptive-neural-compilation

Programming Languages

haskell
3896 projects
NewLisp
63 projects
Yacc
648 projects
Logos
282 projects
lua
6591 projects
python
139335 projects - #7 most used programming language

Neural Assembly Compiler

This repository contains an assembly to PyTorch compiler to be used with ANC. Please follow the instructions given below for the same.

Install

Haskell

The simplest solution to get the dependency would be to install Haskell Platform. Alternatively, if you want to get directly a binary of the compiler, you can find it on the project page

Compilation

Running cabal install should create the executable in ./dist/build/neulang-compiler/neulang-compiler

Usage

The input program should be provided in stdin to the executable. For example to compile the dijkstra's implementation, run cat tests/dijkstra.nl | ./dist/build/neulang-compiler/neulang-compiler. This will print the compiled program to stdout and create a configuration file ./dram.py containing this program that can be used directly by the ANC code.

References

@article{anc, title={Adaptive Neural Compilation}, author={Bunel, Rudy and Desmaison, Alban and Kohli, Pushmeet and Torr, Philip H.S and Kumar, M. Pawan}, journal={arXiv preprint arXiv:1605.07969}, year={2016} }

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].