From 718277eaece76902c4950f18d428907b39a18ef1 Mon Sep 17 00:00:00 2001 From: Benjamin Klimczak Date: Fri, 10 Feb 2023 13:12:57 +0000 Subject: MLIA-769 Add "pretty names" for targets / backends - Provide "pretty names" to print information for targets and backends. - Use 'target_config' instead of 'target' if a target profile is used. - Fix minor issue in output regarding the output directory. Change-Id: Ib38231f30b4d609a0d1e8f9c52b2fb547c69cb6a --- tests/test_backend_vela_compiler.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tests/test_backend_vela_compiler.py') diff --git a/tests/test_backend_vela_compiler.py b/tests/test_backend_vela_compiler.py index 0434ccf..9b69ada 100644 --- a/tests/test_backend_vela_compiler.py +++ b/tests/test_backend_vela_compiler.py @@ -158,8 +158,10 @@ def test_optimize_model(tmp_path: Path, test_tflite_model: Path) -> None: """Test model optimization and saving into file.""" tmp_file = tmp_path / "temp.tflite" - target = EthosUConfiguration.load_profile("ethos-u55-256") - optimize_model(test_tflite_model, target.compiler_options, tmp_file.absolute()) + target_config = EthosUConfiguration.load_profile("ethos-u55-256") + optimize_model( + test_tflite_model, target_config.compiler_options, tmp_file.absolute() + ) assert tmp_file.is_file() assert tmp_file.stat().st_size > 0 -- cgit v1.2.1