Skip to content

Commit

Permalink
lint fix and inference context fix
Browse files Browse the repository at this point in the history
  • Loading branch information
arda-argmax committed Dec 4, 2024
1 parent 0653285 commit e56cd0a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion tests/test_evaluate.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ def setUpClass(cls) -> None:
shell=True
).stdout.decode('utf-8').strip()[:7]

inference_context_spec_dict = None
try:
inference_context_spec_dict = cls.inference_context.spec_dict()
except Exception as e:
logger.warning(f"Inference context spec dict failed: {e}")

cls.results = {
"results": evaluate(
cls.pipeline,
Expand All @@ -76,7 +82,7 @@ def setUpClass(cls) -> None:
"dataset_name": TEST_DATASET_NAME,
"model_version": TEST_MODEL_VERSION,
"whisperkittools_commit_hash": wkt_commit_hash,
"inference_context": cls.inference_context.spec_dict(),
"inference_context": inference_context_spec_dict,
"model_repo_id": MODEL_REPO_ID
}
}
Expand Down
2 changes: 1 addition & 1 deletion whisperkit/android/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"tiny", "tiny.en", "base", "base.en", "small", "small.en"
]

# Reference:
# Reference:
# https://app.aihub.qualcomm.com/docs/hub/compile_examples.html#compiling-pytorch-model-to-a-qnn-model-library

TARGET_TABLE = {
Expand Down

0 comments on commit e56cd0a

Please sign in to comment.