You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12345678910 |
- from typing import Type
- from .entrypoint import BaseEntrypoint
- from ..configs.base_config import PhaseType
- from importlib import import_module
- import sys
-
-
- def get_entry(phase_type: PhaseType):
- EntryPoint: Type[BaseEntrypoint] = import_module(f'torchlap.experiments.{sys.argv[1]}').EntryPoint
- return EntryPoint(phase_type)
|