Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/deepsparse/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ def create(cls, task: str, **kwargs) -> "Pipeline":
"Pipeline was not created for the given task. The "
"provided task should be registered using the OperatorRegistry"
)
except Exception:
_LOGGER.warning(f"Could not create v2 '{task}' pipeline, trying legacy")
except Exception as e:
_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