Skip to content

Commit

Permalink
fix json export to remove middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
Dipika Sikka committed Feb 20, 2024
1 parent 1eed6f6 commit ccdd9ea
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/deepsparse/benchmark/benchmark_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,11 @@ def _clear_measurements():
"Generated no batch timings, try extending benchmark time with '--time'"
)

if SupportedTasks.is_text_generation(task) or SupportedTasks.is_code_generation(
task
):
kwargs.pop("middleware_manager")

return batch_times, total_run_time, num_streams


Expand Down

0 comments on commit ccdd9ea

Please sign in to comment.