Skip to content

Conversation

@m-dahl
Copy link

@m-dahl m-dahl commented Apr 11, 2024

Hi,

thanks for the crate. This PR adds a feature flag for linking with the "lean" runtime library. The lean runtime can only be used to run inference so the feature flag removes all the builder configuration code. The motivation for me is to produce smaller docker containers for deployment. To use it you need to build your engine with the kVERSION_COMPATIBLE flag and either set kEXCLUDE_LEAN_RUNTIME when building or call setEngineHostCodeAllowed on your runtime. The PR includes setters for these flags.

(There is also a TensorDataType enum in this PR, I can split the PR up if you want but I figured it was not so much code anyway so I left it for now.)

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

Successfully merging this pull request may close these issues.

1 participant