Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Tencent/hpc-ops
/ write_jsonl
Function
write_jsonl
benchmark/sampler/benchmark_sampler.py:432–437 ·
view source on GitHub ↗
(path: str, rows: list[dict])
Source
from the content-addressed store, hash-verified
430
431
432
def
write_jsonl(path: str, rows: list[dict]) -> None:
433
if
not path:
434
return
435
with
Path(path).open(
"w"
)
as
f:
436
for
row in rows:
437
f.write(json.dumps(row) +
"\n"
)
438
439
440
def
parse_args():
Callers
1
main
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected