Skip to content

Commit 549b732

Browse files
committed
Arm backend: Fix mypy warnings in arm_model_eval
Fix mypy warnings in arm_model_evaluator.py Change-Id: Ife2e5502d5dacd71e92bd5a86fdf25a34b0fd2b6
1 parent 649c594 commit 549b732

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backends/arm/util/arm_model_evaluator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def __init__(
5959
if tosa_output_path:
6060
self.tosa_output_path = tosa_output_path
6161
else:
62-
self.tosa_output_path = None # type: ignore[assignment]
62+
self.tosa_output_path = ""
6363

6464
def get_model_error(self) -> defaultdict:
6565
"""
@@ -104,7 +104,7 @@ def get_compression_ratio(self) -> float:
104104

105105
return compression_ratio
106106

107-
def evaluate(self) -> dict[Any]: # type: ignore[type-arg]
107+
def evaluate(self) -> dict[str, Any]:
108108
model_error_dict = self.get_model_error()
109109

110110
output_metrics = {"name": self.model_name, "metrics": dict(model_error_dict)}

0 commit comments

Comments
 (0)