dmlc / tl2cgen

TL2cgen (TreeLite 2 C GENerator) is a model compiler for decision tree models
https://tl2cgen.readthedocs.io/en/latest/
Apache License 2.0
21 stars 6 forks source link

[Feature Request] Allow compiling as a static library #31

Open davidelahoz opened 3 months ago

davidelahoz commented 3 months ago

TL2Cgen is quite useful for deploying statistic models to production. However, sometimes dynamic libraries cannot be used in some systems (for example bare-metal programmed embeded systems cannot use them normally). In order to use the model in those cases I manually modify the cmakelists.txt file generated to use STATIC instead of SHARED.

It would be nice if that could be done from python