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

Update profile() to use deepcopy of model #121

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chr-wei
Copy link

@chr-wei chr-wei commented Apr 23, 2021

Reloading the state_dict of a profiled model fails when the new model instance was not profiled as well. Profiling alters the model state_dict by adding buffers. Profiling a model should not change the model in any way. Maybe there is a more elegant way to to this without deepcopying (remove hooks etc.)

Reloading the state_dict of a profiled model fails when the new model instance was not profiled as well. Profiling alters the model state_dict by adding buffers. Profiling a model should not change the model in any way. Maybe there is a more elegant way to to this without deepcopying (remove hooks etc.)
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.

1 participant