Skip to content

Commit 9c9f665

Browse files
authored
Arm backend: avg_pool2d test not assume availibility of tosa_ref_model
Differential Revision: D77278468 Pull Request resolved: #11951
1 parent d5ca5e6 commit 9c9f665

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

backends/arm/test/ops/test_avg_pool2d.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
from typing import Tuple
1010

11+
import conftest
12+
1113
import torch
1214

1315
from executorch.backends.arm.test import common
@@ -119,6 +121,7 @@ def test_avg_pool2d_tosa_MI(test_module):
119121
input_tensor,
120122
aten_op,
121123
exir_op,
124+
run_on_tosa_ref_model=conftest.is_option_enabled("tosa_ref_model"),
122125
)
123126
pipeline.run()
124127

@@ -132,6 +135,7 @@ def test_avg_pool2d_tosa_BI(test_module):
132135
input_tensor,
133136
aten_op,
134137
exir_op,
138+
run_on_tosa_ref_model=conftest.is_option_enabled("tosa_ref_model"),
135139
)
136140
pipeline.run()
137141

0 commit comments

Comments
 (0)