MCPcopy Create free account
hub / github.com/InternScience/SciReason / get_output_paths

Method get_output_paths

opencompass/tasks/base.py:103–119  ·  view source on GitHub ↗

Get the paths to the output files. Every file should exist if the task succeeds. Args: file_extension (str): The file extension of the output files. Default: 'json'.

(self, file_extension: str = 'json')

Source from the content-addressed store, hash-verified

101 os.path.join(self.work_dir, self.log_subdir), file_extension)
102
103 def get_output_paths(self, file_extension: str = 'json') -> List[str]:
104 """Get the paths to the output files. Every file should exist if the
105 task succeeds.
106
107 Args:
108 file_extension (str): The file extension of the output files.
109 Default: 'json'.
110 """
111 output_paths = []
112 for model, datasets in zip(self.model_cfgs, self.dataset_cfgs):
113 for dataset in datasets:
114 output_paths.append(
115 get_infer_output_path(
116 model, dataset,
117 os.path.join(self.work_dir, self.output_subdir),
118 file_extension))
119 return output_paths

Callers 4

_launchMethod · 0.45
_launchMethod · 0.45
_launchMethod · 0.45
_launchMethod · 0.45

Calls 1

get_infer_output_pathFunction · 0.90

Tested by

no test coverage detected