Skip to content

Commit

Permalink
add num_streams as well
Browse files Browse the repository at this point in the history
  • Loading branch information
bfineran committed Jul 28, 2023
1 parent 93bae7b commit 535069b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/deepsparse/base_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,10 @@ def create(
"Overriding input shapes not supported with Bucketing enabled"
)
if not kwargs.get("context", None):
context = Context(num_cores=kwargs.get("num_cores"))
context = Context(
num_cores=kwargs.get("num_cores"),
num_streams=kwargs.get("num_streams"),
)
kwargs["context"] = context
buckets = pipeline_constructor.create_pipeline_buckets(
task=task,
Expand Down

0 comments on commit 535069b

Please sign in to comment.