https://github.com/themrsheldon/libdl
Simple yet powerful deep learning
https://github.com/themrsheldon/libdl
deeplearning
Last synced: 5 months ago
JSON representation
Simple yet powerful deep learning
- Host: GitHub
- URL: https://github.com/themrsheldon/libdl
- Owner: TheMrSheldon
- License: gpl-3.0
- Created: 2023-12-30T16:34:47.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-09-18T17:32:08.000Z (9 months ago)
- Last Synced: 2025-09-18T20:08:50.913Z (9 months ago)
- Topics: deeplearning
- Language: C++
- Homepage: https://themrsheldon.github.io/libdl/
- Size: 3.99 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Citation: CITATION.cff
Awesome Lists containing this project
README
libdl
Simple yet powerful deep learning
Documentation |
API |
Examples |
Citation
# Usage
```cpp
int main(int argc, char* argv[]) {
MyModel model;
auto conf = dl::TrainerConfBuilder()
.setDataset()
.setOptimizer(model.parameters())
.addObserver(dl::observers::limitEpochs(10))
.addObserver(dl::observers::earlyStopping(3))
.addObserver(dl::observers::consoleUI())
.build();
auto trainer = dl::Trainer(std::move(conf));
trainer.fit(model, dl::lossAdapter(dl::loss::mse));
trainer.test(model);
return 0;
}
```
# Installation
## CMake
```cmake
FetchContent_Declare(libdl GIT_REPOSITORY https://github.com/TheMrSheldon/libdl.git)
FetchContent_MakeAvailable(libdl)
target_link_libraries( PUBLIC libdl)
```