Setup the task (e.g., load dictionaries). Args: cfg (omegaconf.DictConfig): parsed command-line arguments
(cls, cfg: DictConfig, **kwargs)
| 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", "") |
nothing calls this directly
no outgoing calls
no test coverage detected