Skip to content

Commit

Permalink
Fixed selecting optimized models for profiling
Browse files Browse the repository at this point in the history
  • Loading branch information
jkosek committed Aug 1, 2024
1 parent 3be8c72 commit ef44a44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model_navigator/inplace/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def _load_modules(model_key: str, runner_name: str, device: str, verbose: bool =
m.load_eager()
else:
m.load_optimized(
strategy=SelectedRuntimeStrategy(model_key=model_key, runner_name=runner_name), device=device
strategies=[SelectedRuntimeStrategy(model_key=model_key, runner_name=runner_name)], device=device
)

except (ModelNavigatorModuleNotOptimizedError, ModelNavigatorRuntimeAnalyzerError) as e:
Expand Down

0 comments on commit ef44a44

Please sign in to comment.