Skip to content

Commit

Permalink
Update pipeline.py
Browse files Browse the repository at this point in the history
Single-line and removed `error` keyword
  • Loading branch information
ProExpertProg committed Feb 5, 2024
1 parent fc8330d commit 974fb3d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/deepsparse/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,7 @@ def create(cls, task: str, **kwargs) -> "Pipeline":
"provided task should be registered using the OperatorRegistry"
)
except Exception as e:
_LOGGER.warning(f"Could not create v2 '{task}' pipeline, with error: {e}")
_LOGGER.warning(f"Attempting to create the legacy pipeline")
_LOGGER.warning(f"Could not create v2 '{task}' pipeline, attempting to create the legacy pipeline. Reason: {e}")
from deepsparse.legacy import Pipeline

pipeline = Pipeline.create(task=task, **kwargs)
Expand Down

0 comments on commit 974fb3d

Please sign in to comment.