Ejemplo n.º 1
0
def _init_timer(time_budgets):
    timer = Timer()
    for process in PROCESSES:
        timer.add_process(process, time_budgets[process],
                          PROCESSES_MODE[process])
        LOGGER.debug(f"init time budget of {process}: {time_budgets[process]} "
                     f"mode: {PROCESSES_MODE[process]}")
    return timer
Ejemplo n.º 2
0
def _init_timer(PREDICT_TIME_BUDGET):
    timer = Timer()
    timer.add_process('initialize.sh', INIT_TIME_BUDGET, timing.CUM)
    LOGGER.debug(f"init time budget of initialize.sh: {INIT_TIME_BUDGET} "
                 f"mode: {timing.CUM}")
    timer.add_process('enrollment.sh', ENROLL_TIME_BUDGET, timing.CUM)
    LOGGER.debug(f"init time budget of enrollment.sh: {ENROLL_TIME_BUDGET} "
                 f"mode: {timing.CUM}")
    timer.add_process('predict.sh', PREDICT_TIME_BUDGET, timing.CUM)
    LOGGER.debug(f"init time budget of predict.sh: {PREDICT_TIME_BUDGET} "
                 f"mode: {timing.CUM}")
    return timer
Ejemplo n.º 3
0
def _init_timer(time_budgets):
    timer = Timer()
    timer.add_process('train_predict', time_budgets, timing.RESET)
    LOGGER.debug(f"init time budget of train_predict: {time_budgets} "
                 f"mode: {timing.RESET}")
    return timer