MCPcopy
hub / github.com/yerfor/GeneFacePlusPlus / get_task_ref

Method get_task_ref

utils/commons/trainer.py:615–618  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

613 # utils
614 ####################
615 def get_task_ref(self):
616 from utils.commons.base_task import BaseTask
617 task: BaseTask = self.task.module if isinstance(self.task, DDP) else self.task
618 return task
619
620 def log_metrics_to_tb(self, metrics, step=None):
621 """Logs the metric dict passed in.

Callers 6

run_single_processMethod · 0.95
evaluateMethod · 0.95
trainMethod · 0.95
run_training_batchMethod · 0.95
restore_weightsMethod · 0.95
dump_checkpointMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected