-
Notifications
You must be signed in to change notification settings - Fork 24.1k
Raise error when no record on extra_files #152664
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
base: main
Are you sure you want to change the base?
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/152664
Note: Links to docs will display an error until the docs builds have been completed. ❗ 1 Active SEVsThere are 1 currently active SEVs. If your PR is affected, please view them below: ✅ No FailuresAs of commit 1f8be72 with merge base 36e5ff6 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
@@ -261,6 +261,12 @@ Module ScriptModuleDeserializer::deserialize( | |||
extra_files[kv.first] = | |||
std::string(static_cast<char*>(meta_ptr.get()), meta_size); | |||
} | |||
else { | |||
TORCH_CHECK( | |||
false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace false
with the above if condition? Then the if branch could be removed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cyyever Solved by replace, thanks for suggestion!
@malfet Have a look? |
Fixes #152178
cc @EikanWang @jgong5 @wenzhe-nrv @sanchitintel