Skip to content

Commit

Permalink
If Zkboost dont set the session for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Gonmeso committed Jun 10, 2024
1 parent 117cfef commit 529d644
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions giza/agents/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,9 @@ def _set_session(self) -> Optional[ort.InferenceSession]:

if self._output_path in self._cache:
file_path = Path(self._cache.get(self._output_path))
if file_path.suffix == ".json":
logger.warning("Skipping session for ZKBoost model")
return None
with open(file_path, "rb") as f:
onnx_model = f.read()

Expand Down

0 comments on commit 529d644

Please sign in to comment.