Skip to content

Commit 63ed767

Browse files
committed
Arm backend: Fix test_lstm_arm.py after mypy changes
Use keywords when calling pipeline.change_args() Signed-off-by: [email protected] Change-Id: Iba70b4c26eb1b96c16ee47382002cd8f7c36852b
1 parent bde6b11 commit 63ed767

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

backends/arm/test/models/test_lstm_arm.py

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ def test_lstm_tosa_FP():
5151
exir_op=[],
5252
use_to_edge_transform_and_lower=True,
5353
)
54-
pipeline.change_args("run_method_and_compare_outputs", get_test_inputs(), atol=3e-1)
54+
pipeline.change_args(
55+
"run_method_and_compare_outputs", inputs=get_test_inputs(), atol=3e-1
56+
)
5557
pipeline.run()
5658

5759

@@ -64,7 +66,10 @@ def test_lstm_tosa_INT():
6466
use_to_edge_transform_and_lower=True,
6567
)
6668
pipeline.change_args(
67-
"run_method_and_compare_outputs", get_test_inputs(), atol=3e-1, qtol=1.0
69+
"run_method_and_compare_outputs",
70+
inputs=get_test_inputs(),
71+
atol=3e-1,
72+
qtol=1.0,
6873
)
6974
pipeline.run()
7075

@@ -79,7 +84,10 @@ def test_lstm_u55_INT():
7984
use_to_edge_transform_and_lower=True,
8085
)
8186
pipeline.change_args(
82-
"run_method_and_compare_outputs", get_test_inputs(), atol=3e-1, qtol=1.0
87+
"run_method_and_compare_outputs",
88+
inputs=get_test_inputs(),
89+
atol=3e-1,
90+
qtol=1.0,
8391
)
8492
pipeline.run()
8593

@@ -94,7 +102,10 @@ def test_lstm_u85_INT():
94102
use_to_edge_transform_and_lower=True,
95103
)
96104
pipeline.change_args(
97-
"run_method_and_compare_outputs", get_test_inputs(), atol=3e-1, qtol=1.0
105+
"run_method_and_compare_outputs",
106+
inputs=get_test_inputs(),
107+
atol=3e-1,
108+
qtol=1.0,
98109
)
99110
pipeline.run()
100111

0 commit comments

Comments
 (0)