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
17 stars 6 forks source link

[FEA]Custom generated name #4

Open cmsxbc opened 1 year ago

cmsxbc commented 1 year ago

Why

I'd like to static link many models to my program, and call predict function in different threads instead of using the provided Predictor.

Problem

But all the generated name is same.

current workaround

I have to do some "search and replace" after generating source code.

Expected solution

It's pretty good if I can custom the generated name. Adding prefix or suffix is enough, I think.