Skip to content

Commit

Permalink
fix stable diffusion ONNX export (#1173)
Browse files Browse the repository at this point in the history
  • Loading branch information
echarlaix authored Jul 7, 2023
1 parent f6dace2 commit b9ec1ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion optimum/utils/normalized_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class NormalizedConfig:
"""

def __init__(self, config: Union[PretrainedConfig, Dict], allow_new: bool = False, **kwargs):
self.config = config if isinstance(config, PretrainedConfig) else PretrainedConfig.from_dict(config)
self.config = config
for key, value in kwargs.items():
if allow_new or hasattr(self, key.upper()):
setattr(self, key.upper(), value)
Expand Down

0 comments on commit b9ec1ec

Please sign in to comment.