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

Better error message for PyTorch Load Model #1433

Merged
merged 1 commit into from
Dec 24, 2022

Conversation

RunDevelopment
Copy link
Member

Fixes #1432.

This changes load_state_dict to no longer be responsible for error message. If the function detects that the model is unsupported, it will throw an UnsupportedModel exception and the caller is responsible for generating a good error message.

Error message for the model provided in #1432:
image

@joeyballentine joeyballentine merged commit 3fae92c into chaiNNer-org:main Dec 24, 2022
@RunDevelopment RunDevelopment deleted the issue1432 branch December 24, 2022 22:24
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.

Name unsupported model is not always written in error (Model File Iterator node)
2 participants