diff options
author | Dmitrii Agibov <dmitrii.agibov@arm.com> | 2022-11-18 17:21:09 +0000 |
---|---|---|
committer | Dmitrii Agibov <dmitrii.agibov@arm.com> | 2022-11-29 14:44:13 +0000 |
commit | 6a88ee5315b4ce5b023370c1e55e48bf9f2b6f67 (patch) | |
tree | 88edabf90228724f4fe2944b0ab23859d824a880 /tests/test_devices_ethosu_performance.py | |
parent | a34163c9d9a5cc0416bcaea2ebf8383bda9d505c (diff) | |
download | mlia-6a88ee5315b4ce5b023370c1e55e48bf9f2b6f67.tar.gz |
Rename modules
- Rename module "mlia.devices" into "mlia.target"
- Rename module "mlia.target.ethosu" into "mlia.target.ethos_u"
- Rename module "mlia.target.cortexa" into "mlia.target.cortex_a"
- Rename and update tests
Change-Id: I6dca7c8646d881f739fb6b5914d1cc7e45e63dc2
Diffstat (limited to 'tests/test_devices_ethosu_performance.py')
-rw-r--r-- | tests/test_devices_ethosu_performance.py | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/tests/test_devices_ethosu_performance.py b/tests/test_devices_ethosu_performance.py deleted file mode 100644 index 3ff73d8..0000000 --- a/tests/test_devices_ethosu_performance.py +++ /dev/null @@ -1,28 +0,0 @@ -# SPDX-FileCopyrightText: Copyright 2022, Arm Limited and/or its affiliates. -# SPDX-License-Identifier: Apache-2.0 -"""Performance estimation tests.""" -from unittest.mock import MagicMock - -import pytest - -from mlia.devices.ethosu.performance import MemorySizeType -from mlia.devices.ethosu.performance import MemoryUsage - - -def test_memory_usage_conversion() -> None: - """Test MemoryUsage objects conversion.""" - memory_usage_in_kb = MemoryUsage(1, 2, 3, 4, 5, MemorySizeType.KILOBYTES) - assert memory_usage_in_kb.in_kilobytes() == memory_usage_in_kb - - memory_usage_in_bytes = MemoryUsage( - 1 * 1024, 2 * 1024, 3 * 1024, 4 * 1024, 5 * 1024 - ) - assert memory_usage_in_bytes.in_kilobytes() == memory_usage_in_kb - - -def mock_performance_estimation(monkeypatch: pytest.MonkeyPatch) -> None: - """Mock performance estimation.""" - monkeypatch.setattr( - "mlia.backend.corstone.performance.estimate_performance", - MagicMock(return_value=MagicMock()), - ) |