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

load .pt file error engine_bytes = state_dict[prefix + "engine"] KeyError: 'engine' #22

Open
2443374695 opened this issue Jun 7, 2024 · 1 comment

Comments

@2443374695
Copy link

2443374695 commented Jun 7, 2024

model_trt.load_state_dict(torch.load('epoch20.pt'))
engine_bytes = state_dict[prefix + "engine"]
KeyError: 'engine'

@aditya-nisal
Copy link

Hello, were you able to fix the error? I am running into the same error.

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