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

How do you use" build_engine"? #3965

Open
kimsoomin415 opened this issue Jun 25, 2024 · 1 comment
Open

How do you use" build_engine"? #3965

kimsoomin415 opened this issue Jun 25, 2024 · 1 comment

Comments

@kimsoomin415
Copy link

kimsoomin415 commented Jun 25, 2024

In TensorRT 10.1, if you try to use build_engine, the following error occurs.
[AttributeError: 'tensorrt_bindings.tensorrt.Builder' object has no attribute 'build_engine']

How do I use build_engine on TensorRT 10.1?

@kimsoomin415 kimsoomin415 changed the title How do you use build_engine? How do you use" build_engine"? Jun 25, 2024
@lix19937
Copy link

Use follow

engine_bytes = self.builder.build_serialized_network(self.network, self.config)
if engine_bytes is None:
    log.error("Failed to create engine")
    sys.exit(1)

Engine Building, use only build_serialized_network

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