Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

When pruning a pruned model,It would be better if not ctreate a new wrapper #4216

Answered by Davidxswang
trotsky1997 asked this question in Q&A
Discussion options

You must be logged in to vote

Maybe you can call _unwrap_model method (defined in the class Compressor) before pruning the same model again. The _unwrap_model method will take the module out of the wrapper for each wrapped module in the model being pruned. @trotsky1997

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by scarlett2018
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #3901 on September 26, 2021 08:48.