-
Notifications
You must be signed in to change notification settings - Fork 355
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
Enabled python runtime saving #2999
base: main
Are you sure you want to change the base?
Conversation
state.pop("input_shapes", None) | ||
state.pop("output_dtypes", None) | ||
state.pop("output_shapes", None) | ||
state.pop("active_stream", None) |
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.
I dont think this data should be serialized. It should be reconstructed on reload
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.
These data are poped from the dict so they are not serialized
state.pop("output_dtypes", None) | ||
state.pop("output_shapes", None) | ||
state.pop("active_stream", None) | ||
state.pop("target_device_properties", None) |
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.
Do we reuse this data on load to set up the engine properly?
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.
Yes. Line 163 initialized all these data
self.__dict__.update(state) | ||
self.target_device_properties = torch.cuda.get_device_properties( |
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.
The deserialization should make sure that the gpu matches the gpu the engine was built on instead of just changing it
Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes # (issue)
Type of change
Please delete options that are not relevant and/or add your own.
Checklist: