MCPcopy 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
87def 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

Calls 1

dumpMethod · 0.80

Tested by

no test coverage detected