An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

libdl



Simple yet powerful deep learning


GPL 2.0 License
Current Release


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)
```