Skip to content

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