Fix potential issues.

This commit is contained in:
comfyanonymous
2023-11-16 14:59:54 -05:00
parent bd07ad1861
commit 9f00a18095
2 changed files with 2 additions and 2 deletions

View File

@@ -37,7 +37,7 @@ class ModelPatcher:
return size
def clone(self):
n = ModelPatcher(self.model, self.load_device, self.offload_device, self.size, self.current_device)
n = ModelPatcher(self.model, self.load_device, self.offload_device, self.size, self.current_device, weight_inplace_update=self.weight_inplace_update)
n.patches = {}
for k in self.patches:
n.patches[k] = self.patches[k][:]