diff options
Diffstat (limited to 'src/mlia/devices/tosa/events.py')
-rw-r--r-- | src/mlia/devices/tosa/events.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/mlia/devices/tosa/events.py b/src/mlia/devices/tosa/events.py new file mode 100644 index 0000000..ceaba57 --- /dev/null +++ b/src/mlia/devices/tosa/events.py @@ -0,0 +1,24 @@ +# SPDX-FileCopyrightText: Copyright 2022, Arm Limited and/or its affiliates. +# SPDX-License-Identifier: Apache-2.0 +"""TOSA advisor events.""" +from dataclasses import dataclass +from pathlib import Path + +from mlia.core.events import Event +from mlia.core.events import EventDispatcher +from mlia.devices.tosa.config import TOSAConfiguration + + +@dataclass +class TOSAAdvisorStartedEvent(Event): + """Event with TOSA advisor parameters.""" + + model: Path + device: TOSAConfiguration + + +class TOSAAdvisorEventHandler(EventDispatcher): + """Event handler for the TOSA inference advisor.""" + + def on_tosa_advisor_started(self, event: TOSAAdvisorStartedEvent) -> None: + """Handle TOSAAdvisorStartedEvent event.""" |