Skip to content

Commit

Permalink
add error if interpreter fails to load model
Browse files Browse the repository at this point in the history
  • Loading branch information
Allan-xmos committed Aug 16, 2023
1 parent b0c2f19 commit 9dd1a79
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/xmos_ai_tools/xinterpreters/base/base_interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,8 @@ def set_model(
)
)
self.initialise_interpreter(model_index)
else:
raise ValueError("model_path must be str")

def get_model(self, model_index: int = 0):
for model in self.models:
Expand Down

0 comments on commit 9dd1a79

Please sign in to comment.