Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Best way to integrate into .NET #57

Open
onacrame opened this issue Nov 8, 2023 · 1 comment
Open

Best way to integrate into .NET #57

onacrame opened this issue Nov 8, 2023 · 1 comment

Comments

@onacrame
Copy link

onacrame commented Nov 8, 2023

I'm looking for the best way to integrate a compiled model into .NET code. I'd rather not have to utilise an initial call to Python and rely on the underlying binary. I know there's reference to example in the benchmark section but not sure what adaptations are required to make it work outside of that context

@siboehm
Copy link
Owner

siboehm commented Nov 8, 2023

I'm not familiar with .NET at all sadly. Though the process should be the same as calling any C function, so an approach like this one should work for you. All that's necessary is declaring the function as extern, and passing the path to the binary returned by lleaves to your linker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants