Skip to content

Commit

Permalink
Merge pull request AUTOMATIC1111#13178 from wpdong0727/fix-lora-bias-…
Browse files Browse the repository at this point in the history
…backup-reset

fix: lora-bias-backup don't reset cache
  • Loading branch information
AUTOMATIC1111 authored Sep 30, 2023
2 parents 3aa9f01 + 7d4d871 commit a0e979b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions extensions-builtin/Lora/networks.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,7 @@ def network_forward(module, input, original_forward):
def network_reset_cached_weight(self: Union[torch.nn.Conv2d, torch.nn.Linear]):
self.network_current_names = ()
self.network_weights_backup = None
self.network_bias_backup = None


def network_Linear_forward(self, input):
Expand Down

0 comments on commit a0e979b

Please sign in to comment.