Fix issue with pinned memory. (#10597)

This commit is contained in:
comfyanonymous 2025-11-01 14:25:59 -07:00 committed by GitHub
parent 20182a393f
commit 44869ff786
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -298,6 +298,7 @@ class ModelPatcher:
n.backup = self.backup n.backup = self.backup
n.object_patches_backup = self.object_patches_backup n.object_patches_backup = self.object_patches_backup
n.parent = self n.parent = self
n.pinned = self.pinned
n.force_cast_weights = self.force_cast_weights n.force_cast_weights = self.force_cast_weights