mirror of
https://github.com/NicolasBohn/NexQuant.git
synced 2026-07-27 23:47:46 +00:00
fix: clear ws_ckp after extraction to reduce workspace object size (#1137)
This commit is contained in:
@@ -350,6 +350,8 @@ class FBWorkspace(Workspace):
|
||||
dest_path.parent.mkdir(parents=True, exist_ok=True)
|
||||
with dest_path.open("wb") as f:
|
||||
f.write(zf.read(info))
|
||||
# NOTE: very important to reduce the size of the object
|
||||
self.ws_ckp = None
|
||||
|
||||
def __str__(self) -> str:
|
||||
return f"Workspace[{self.workspace_path=}" + (
|
||||
|
||||
Reference in New Issue
Block a user