![]() |
NMBUFlowTorch
0.1.0
Creating a C++ interface for doing DNN related work
|

A simple C++ implementation of Neural Nets, inspired by the functionality of Tensorflow and pyTorch.
The documentation with this readme is available at Documentation
ENABLE_DOXYGEN option, which you can enable if you wish to use it,ENABLE_CODE_COVERAGE option, through Codecov CI integration,These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
This project is meant as a template and a good starting point for learning how create larger c++ projects, compile and run them. can be change to better suit the needs of the developer(s). If you wish to use the template as-is, meaning using the versions recommended here, then you will need:
Note: You also need to be able to provide CMake a supported generator.
There are few select extensions which are recommended
It is fairly easy to install the project, all you need to do is clone if from GitHub.
If you wish to clone the repository, you simply need to run:
or
Install requirements (cmake, conan, etc..)
Build and install project as an executable
If you just want to rebuild fast and you are happy with the install location, run:
The executables of the project will then be in the
To install an already built project, you need to run the install target with CMake. For example:
If you have not built the project yet, the automatic_rebuild_and_install.sh will do fine, otherwise follow the next section:
Note: If you want to supress a lot of warnings when building, see the CMakeLists.txt at line 145 and 146, and uncomment the preferred.
To build the project, all you need to do, after correctly installing the project, is run a similar CMake routine to the the one below:
Note: The custom
CMAKE_INSTALL_PREFIXcan be omitted if you wish to install in the default install location.
More options that you can set for the project can be found in the cmake/StandardSettings.cmake file. For certain options additional configuration may be needed in their respective *.cmake files (i.e. Conan needs the CONAN_REQUIRES and might need the CONAN_OPTIONS to be setup for it work correctly; the two are set in the cmake/Conan.cmake file).
In order to generate documentation for the project, you need to configure the build to use Doxygen. This is easily done, by modifying the workflow shown above as follows:
Note: This will generate a
docs/directory in the project's root directory.
This project uses Google Test for unit testing. Unit testing can be disabled in the options, by setting the ENABLE_UNIT_TESTING (from cmake/StandardSettings.cmake) to be false. To run the tests, simply use CTest, from the build directory, passing the desire configuration for which to run tests for. An example of this procedure is:
after installing run the following in the project directory:
This project is licensed under the Unlicense - see the [LICENSE](LICENSE) file for details