[s2s] two stage run_distributed_eval.py (#7105)

This commit is contained in:
Sam Shleifer
2020-09-13 17:28:18 -04:00
committed by GitHub
parent 0ec63afec2
commit e7f8d2ab64
3 changed files with 192 additions and 0 deletions

View File

@@ -387,3 +387,10 @@ def parse_numeric_cl_kwargs(unparsed_args: List[str]) -> Dict[str, Union[int, fl
result[unparsed_args[i][2:]] = value
return result
def write_txt_file(ordered_tgt, path):
f = Path(path).open("w")
for ln in ordered_tgt:
f.write(ln + "\n")
f.flush()