Artelnics/opennn

OpenNN - Open Neural Networks Library

What it solves

OpenNN gives C++ developers a full toolkit for creating and training neural networks without leaving the C++ ecosystem. It handles different data types (tabular, images, time series, text) and can run on CPU or optionally GPU via CUDA, so you can train models inside a C++ application and deploy them as portable code.

How it works

You build and train networks through the library’s API. It uses CMake for configuration, with separate CPU and CUDA build options. After training, you can export a model as standalone C or Python source code, or embed it directly into your C++ app using the installed CMake package. The library includes examples, tests, and benchmarks (e.g., versus PyTorch).

Who it’s for

C++ developers who need neural-network functionality as part of a larger application — from those new to the library (quick start and Iris example) to teams integrating models into production C++ systems or exporting them for other platforms. It also suits researchers comparing performance with PyTorch via bundled benchmarks.

Highlights

  • C++20 library with modular headers, e.g. #include "opennn/network/network.h".
  • Supports tabular, image, time-series, and text data.
  • CPU and optional CUDA execution (with cuDNN 9+).
  • Export trained models as standalone C or Python code.
  • CMake package with exported targets for easy integration into your own app.
  • Includes examples, unit tests, and PyTorch comparison benchmarks.
  • Dual licensing (AGPL-3.0 with extra permissions, or commercial).

Related

  • Project
  • Project
  • Project
  • Project
  • Project