Skip to content

Commit 75069e1

Browse files
committed
fix missing attribute
1 parent 9c9ba04 commit 75069e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

onnx_diagnostic/torch_models/hghub/model_inputs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def get_untrained_model_with_inputs(
147147
elif verbose:
148148
print(
149149
f"[get_untrained_model_with_inputs] default config._attn_implementation="
150-
f"{config._attn_implementation!r}" # type: ignore[union-attr]
150+
f"{getattr(config, '_attn_implementation', '?')!r}" # type: ignore[union-attr]
151151
)
152152

153153
if type(config) is dict and "_diffusers_version" in config:

0 commit comments

Comments
 (0)