mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-02-03 14:21:38 -08:00
do not use assing=True for nn.LayerNorm
This commit is contained in:
parent
5f3314ec43
commit
4ad5f22c7b
1 changed files with 1 additions and 1 deletions
|
|
@ -176,7 +176,7 @@ class LoadStateDictOnMeta(ReplaceHelper):
|
|||
def load_from_state_dict(original, module, state_dict, prefix, *args, **kwargs):
|
||||
used_param_keys = []
|
||||
|
||||
if isinstance(module, (torch.nn.Linear, torch.nn.Conv2d, torch.nn.GroupNorm, torch.nn.LayerNorm)):
|
||||
if isinstance(module, (torch.nn.Linear, torch.nn.Conv2d, torch.nn.GroupNorm,)):
|
||||
# HACK add assign=True to local_metadata for some cases
|
||||
args[0]['assign_to_params_buffers'] = True
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue