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

Lean feature to link against nvinfer_lean.so + some flag setters. #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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