Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyasMoutawwakil committed Sep 7, 2024
1 parent f0e3f2b commit 80c63d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions optimum/onnxruntime/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ def __init__(
super().__init__(session, parent_model)

config = (
self.parent_model.config.encoder
if hasattr(self.parent_model.config, "encoder")
self.parent_model.config.decoder
if hasattr(self.parent_model.config, "decoder")
else self.parent_model.config
)

Expand Down

0 comments on commit 80c63d0

Please sign in to comment.