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/conftest.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tests/conftest.py') diff --git a/tests/conftest.py b/tests/conftest.py index 55b296f..30889ca 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -84,9 +84,11 @@ def fixture_test_models_path( tflite_vela_model = tmp_path / "test_model_vela.tflite" - target_profile = EthosUConfiguration.load_profile("ethos-u55-256") + target_config = EthosUConfiguration.load_profile("ethos-u55-256") optimize_model( - tflite_model_path, target_profile.compiler_options, tflite_vela_model + tflite_model_path, + target_config.compiler_options, + tflite_vela_model, ) tf.saved_model.save(keras_model, str(tmp_path / "tf_model_test_model")) -- cgit v1.2.1