-
Notifications
You must be signed in to change notification settings - Fork 451
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2025-02-13 nightly release (8ad15f3)
- Loading branch information
pytorchbot
committed
Feb 13, 2025
1 parent
ab6b78f
commit e32cc73
Showing
82 changed files
with
717 additions
and
297 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
# Copyright 2025 Arm Limited and/or its affiliates. | ||
|
||
# This source code is licensed under the BSD-style license found in the | ||
# LICENSE file in the root directory of this source tree. | ||
|
||
import unittest | ||
|
||
import pytest | ||
|
||
from executorch.backends.arm.test import common, conftest | ||
|
||
from executorch.backends.arm.test.tester.arm_tester import ArmTester | ||
from executorch.examples.models import deeplab_v3 | ||
|
||
|
||
class TestDl3(unittest.TestCase): | ||
"""Tests DeepLabv3.""" | ||
|
||
dl3 = deeplab_v3.DeepLabV3ResNet50Model() | ||
model_inputs = dl3.get_example_inputs() | ||
dl3 = dl3.get_eager_model() | ||
|
||
@unittest.expectedFailure | ||
def test_dl3_tosa_MI(self): | ||
( | ||
ArmTester( | ||
self.dl3, | ||
example_inputs=self.model_inputs, | ||
compile_spec=common.get_tosa_compile_spec("TOSA-0.80+MI"), | ||
) | ||
.export() | ||
.to_edge_transform_and_lower() | ||
.to_executorch() | ||
.run_method_and_compare_outputs(self.model_inputs) | ||
) | ||
|
||
@unittest.expectedFailure | ||
def test_dl3_tosa_BI(self): | ||
( | ||
ArmTester( | ||
self.dl3, | ||
example_inputs=self.model_inputs, | ||
compile_spec=common.get_tosa_compile_spec("TOSA-0.80+BI"), | ||
) | ||
.quantize() | ||
.export() | ||
.to_edge_transform_and_lower() | ||
.to_executorch() | ||
.run_method_and_compare_outputs(atol=1.0, qtol=1, inputs=self.model_inputs) | ||
) | ||
|
||
@pytest.mark.slow | ||
@pytest.mark.corstone_fvp | ||
@unittest.skip | ||
def test_dl3_u55_BI(self): | ||
tester = ( | ||
ArmTester( | ||
self.dl3, | ||
example_inputs=self.model_inputs, | ||
compile_spec=common.get_u55_compile_spec(), | ||
) | ||
.quantize() | ||
.export() | ||
.to_edge_transform_and_lower() | ||
.to_executorch() | ||
.serialize() | ||
) | ||
if conftest.is_option_enabled("corstone_fvp"): | ||
tester.run_method_and_compare_outputs( | ||
atol=1.0, qtol=1, inputs=self.model_inputs | ||
) | ||
|
||
@pytest.mark.slow | ||
@pytest.mark.corstone_fvp | ||
@unittest.skip | ||
def test_dl3_u85_BI(self): | ||
tester = ( | ||
ArmTester( | ||
self.dl3, | ||
example_inputs=self.model_inputs, | ||
compile_spec=common.get_u85_compile_spec(), | ||
) | ||
.quantize() | ||
.export() | ||
.to_edge_transform_and_lower() | ||
.to_executorch() | ||
.serialize() | ||
) | ||
if conftest.is_option_enabled("corstone_fvp"): | ||
tester.run_method_and_compare_outputs( | ||
atol=1.0, qtol=1, inputs=self.model_inputs | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.