siboehm / lleaves

Compiler for LightGBM gradient-boosted trees, based on LLVM. Speeds up prediction by ≥10x.
https://lleaves.readthedocs.io/en/latest/
MIT License
364 stars 29 forks source link

Could you please provide an example to use the C API with input as `vector<double>`? #29

Closed fuyw closed 2 years ago

fuyw commented 2 years ago

Hello Simon,

Could you please provide an example to use the C API with input as vector<double>?

I met an error of illegal hardware instruction (core dumped).

Many thanks.

fuyw commented 2 years ago

I found the bug in my code.

Thanks for the nice repo.