MCPcopy Create free account
hub / github.com/FLC777/GLAT / setup_task

Method setup_task

fairseq/tasks/fairseq_task.py:125–131  ·  view source on GitHub ↗

Setup the task (e.g., load dictionaries). Args: cfg (omegaconf.DictConfig): parsed command-line arguments

(cls, cfg: DictConfig, **kwargs)

Source from the content-addressed store, hash-verified

123
124 @classmethod
125 def setup_task(cls, cfg: DictConfig, **kwargs):
126 """Setup the task (e.g., load dictionaries).
127
128 Args:
129 cfg (omegaconf.DictConfig): parsed command-line arguments
130 """
131 return cls(cfg, **kwargs)
132
133 def has_sharded_data(self, split):
134 return os.pathsep in getattr(self.cfg, "data", "")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected