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.

_entry_loader.py 331B

12345678910
  1. from typing import Type
  2. from .entrypoint import BaseEntrypoint
  3. from ..configs.base_config import PhaseType
  4. from importlib import import_module
  5. import sys
  6. def get_entry(phase_type: PhaseType):
  7. EntryPoint: Type[BaseEntrypoint] = import_module(f'torchlap.experiments.{sys.argv[1]}').EntryPoint
  8. return EntryPoint(phase_type)