Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyasMoutawwakil committed Oct 15, 2024
1 parent 23a02bd commit 6183a8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion optimum/onnxruntime/modeling_decoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ def __init__(
setattr(self.generation_config, param_name, param_value)
setattr(self.config, param_name, None)

self.model_path = Path(model._model_path)
self.use_merged = "use_cache_branch" in self.input_names
self.model_type = self.config.model_type

Expand Down
2 changes: 2 additions & 0 deletions optimum/onnxruntime/modeling_ort.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,8 @@ def __init__(
):
super().__init__(model, config)

self.model_path = Path(model._model_path)

self.input_names = {input_key.name: idx for idx, input_key in enumerate(model.get_inputs())}
self.input_dtypes = {input_key.name: input_key.type for input_key in model.get_inputs()}

Expand Down

0 comments on commit 6183a8b

Please sign in to comment.