diff options
author | Annie Tallund <annie.tallund@arm.com> | 2022-12-14 15:55:19 +0100 |
---|---|---|
committer | Benjamin Klimczak <benjamin.klimczak@arm.com> | 2023-02-08 15:17:12 +0000 |
commit | 09ecc5c8acb758e8def33155feb746a34dd7b560 (patch) | |
tree | 65c39a7f7929b745b9c5a31ab48bb4c6e97cb3ea /src/mlia/target/ethos_u | |
parent | 6fbcffb4ee039438a409fbc92e38fa5d1d118833 (diff) | |
download | mlia-09ecc5c8acb758e8def33155feb746a34dd7b560.tar.gz |
MLIA-590 Support path to custom target profiles
- Start using TOML format for target profile
- Add support for loading custom target profile files
Change-Id: I6be019d4341e93115440ccdbdb6dafdc1c85b966
Diffstat (limited to 'src/mlia/target/ethos_u')
-rw-r--r-- | src/mlia/target/ethos_u/advisor.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mlia/target/ethos_u/advisor.py b/src/mlia/target/ethos_u/advisor.py index ce4e0fc..937e91c 100644 --- a/src/mlia/target/ethos_u/advisor.py +++ b/src/mlia/target/ethos_u/advisor.py @@ -123,7 +123,7 @@ class EthosUInferenceAdvisor(DefaultInferenceAdvisor): def configure_and_get_ethosu_advisor( context: ExecutionContext, - target_profile: str, + target_profile: str | Path, model: str | Path, **extra_args: Any, ) -> InferenceAdvisor: @@ -155,7 +155,7 @@ _DEFAULT_OPTIMIZATION_TARGETS = [ def _get_config_parameters( model: str | Path, - target_profile: str, + target_profile: str | Path, **extra_args: Any, ) -> dict[str, Any]: """Get configuration parameters for the advisor.""" |