#217217th of 433 in ML frameworks and libraries
frugally-deep
Header-only C++ library for running Keras model inference without TensorFlow
Watch puts frugally-deep on your watch list: its new releases and known problems since your last visit. Kept in this browser, no account.frugally-deep is on your watch list. Its new releases and problems show there.
- Stars
- 1.1k
- License
- MIT
- Last commit
- Nov 2026
- Last release
- Nov 2026
- Language
- C++
1,121 on 7 May 20261,128 on 26 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
frugally-deep is a header-only C++14 library that loads Keras models converted to JSON and runs the forward pass on CPU. It re-implements the subset of TensorFlow needed for prediction, covering sequential and functional-API models, and depends only on FunctionalPlus, Eigen and nlohmann/json. Models are exported with a Python converter script, which also embeds a test case that is checked on load.
Who it is for: C++ developers embedding trained Keras models in CPU-only applications
Strengths
- Header-only, with only FunctionalPlus, Eigen and json as dependencies; no TensorFlow linking
- Much smaller binaries than linking TensorFlow; works in 32-bit builds
- Load-time check compares C++ output against Keras output on a generated test case
- Covers many layers: Conv1D/2D/3D, LSTM, GRU, MultiHeadAttention, nested and multi-input models
Weaknesses
- Inference only; ignores the GPU and uses one CPU core per prediction
- Lambda, TextVectorization, StringLookup, stateful recurrent layers are unsupported
- Only channels_last models on the TensorFlow backend are supported
- README warns the API may still change
What it needs
- no GPU
- Needs FunctionalPlus, Eigen, nlohmann/json, Python 3.9+, TensorFlow 2.21.0, Keras 3.14.0
- Models: Keras .keras models (converted to JSON)
What changed
From the release notes. No flag means the note does not say so, not that the upgrade is safe. Releases and problems by RSS
Also in ML frameworks and libraries
See all 433| Rank | Project | Score |
|---|---|---|
| #215 | roboverseRobot simulation platform with one API across simulators, plus tasks and training code | 55 out of 100 |
| #216 | scikit-learn-intelexDrop-in scikit-learn accelerator backed by oneDAL, for CPUs and GPUs | 55 out of 100 |
| #218 | skrlModular reinforcement learning library for PyTorch, JAX and NVIDIA Warp | 55 out of 100 |
| #219 | deepgemmCUDA tensor core kernels for FP8, FP4 and BF16 GEMMs and fused MoE | 54 out of 100 |
| #220 | object-detection-metricsPython functions for computing object detection metrics like PASCAL VOC AP | 54 out of 100 |