aboutsummaryrefslogtreecommitdiff
path: root/src/mlia/target/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mlia/target/config.py')
-rw-r--r--src/mlia/target/config.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mlia/target/config.py b/src/mlia/target/config.py
index 8ccdad8..8492086 100644
--- a/src/mlia/target/config.py
+++ b/src/mlia/target/config.py
@@ -85,9 +85,11 @@ T = TypeVar("T", bound="TargetProfile")
class TargetProfile(ABC):
"""Base class for target profiles."""
- def __init__(self, target: str) -> None:
+ def __init__(self, target: str, backend_config: dict | None = None) -> None:
"""Init TargetProfile instance with the target name."""
self.target = target
+ # Load backend config(s) to be handled by the backend(s) later.
+ self.backend_config = {} if backend_config is None else backend_config
@classmethod
def load(cls: type[T], path: str | Path) -> T: