Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
xenova committed Nov 14, 2024
1 parent 55a19cb commit fd15bd3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions optimum/onnxruntime/runs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ def __init__(self, run_config):
model_class = FeaturesManager.get_model_class_for_feature(get_autoclass_name(self.task))
self.torch_model = model_class.from_pretrained(run_config["model_name_or_path"])

self.return_body["model_type"] = (
self.torch_model.config.model_type
) # return_body is initialized in parent class
self.return_body[
"model_type"
] = self.torch_model.config.model_type # return_body is initialized in parent class

def _launch_time(self, trial):
batch_size = trial.suggest_categorical("batch_size", self.batch_sizes)
Expand Down

0 comments on commit fd15bd3

Please sign in to comment.