Skip to content

Commit

Permalink
fix: lora-bias-backup don't reset cache
Browse files Browse the repository at this point in the history
  • Loading branch information
dongwenpu committed Sep 10, 2023
1 parent 9246423 commit 7d4d871
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 7d4d871

Please sign in to comment.