|
1 | 1 | # Copyright (c) Meta Platforms, Inc. and affiliates.
|
2 |
| -# Copyright 2024-2025 Arm Limited and/or its affiliates. |
3 | 2 | # All rights reserved.
|
| 3 | +# Copyright 2024-2025 Arm Limited and/or its affiliates. |
4 | 4 | #
|
5 | 5 | # This source code is licensed under the BSD-style license found in the
|
6 | 6 | # LICENSE file in the root directory of this source tree.
|
@@ -232,8 +232,24 @@ def test_maxpool2d_tosa_u85_BI_mult_batches(
|
232 | 232 | if conftest.is_option_enabled("corstone_fvp"):
|
233 | 233 | tester.run_method_and_compare_outputs(qtol=1, inputs=(test_data,))
|
234 | 234 |
|
| 235 | + @parameterized.expand(test_data_suite_mult_batches) |
| 236 | + @pytest.mark.corstone_fvp |
| 237 | + @conftest.expectedFailureOnFVP # TODO: MLETORCH-433 |
| 238 | + def test_maxpool2d_tosa_u55_BI_mult_batches( |
| 239 | + self, |
| 240 | + test_name: str, |
| 241 | + test_data: torch.Tensor, |
| 242 | + model_params: int | Tuple[int, int], |
| 243 | + ): |
| 244 | + tester = self._test_maxpool2d_tosa_ethos_BI_pipeline( |
| 245 | + self.MaxPool2d(*model_params), |
| 246 | + common.get_u55_compile_spec(), |
| 247 | + (test_data,), |
| 248 | + ) |
| 249 | + if conftest.is_option_enabled("corstone_fvp"): |
| 250 | + tester.run_method_and_compare_outputs(qtol=1, inputs=(test_data,)) |
| 251 | + |
235 | 252 | reject_data_suite = [
|
236 |
| - (MaxPool2d(1, 1, 0), torch.rand(2, 5, 5, 5)), |
237 | 253 | (MaxPool2d(1, 4, 0), torch.rand(1, 10, 10, 10)),
|
238 | 254 | (MaxPool2d((1, 257), 1, 0), torch.rand(1, 16, 5, 300)),
|
239 | 255 | (MaxPool2d((800, 90), 1, 0), torch.rand(1, 16, 850, 100)),
|
|
0 commit comments