Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PaddlePaddle/FastDeploy
/ write_to_json
Function
write_to_json
fastdeploy/benchmarks/lib/utils.py:87–90 ·
view source on GitHub ↗
write_to_json
(filename: str, records: list)
Source
from the content-addressed store, hash-verified
85
86
87
def
write_to_json(filename: str, records: list) -> None:
88
""
"write_to_json"
""
89
with
open(filename,
"w"
)
as
f:
90
json.dump(records, f, cls=InfEncoder)
Callers
1
save_to_pytorch_benchmark_format
Function · 0.90
Calls
1
dump
Method · 0.80
Tested by
no test coverage detected