Fix case of weights not being unpinned. (#10533)
This commit is contained in:
@@ -1283,5 +1283,6 @@ class ModelPatcher:
|
|||||||
self.clear_cached_hook_weights()
|
self.clear_cached_hook_weights()
|
||||||
|
|
||||||
def __del__(self):
|
def __del__(self):
|
||||||
|
self.unpin_all_weights()
|
||||||
self.detach(unpatch_all=False)
|
self.detach(unpatch_all=False)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user