MCPcopy Create free account
hub / github.com/BeastyZ/ConvSearch-R1 / json_dumps_arguments

Function json_dumps_arguments

index/dense/utils.py:30–35  ·  view source on GitHub ↗
(output_path, args)

Source from the content-addressed store, hash-verified

28 continue
29
30def json_dumps_arguments(output_path, args):
31 with open(output_path, "w") as f:
32 params = vars(args)
33 if "device" in params:
34 params["device"] = str(params["device"])
35 f.write(json.dumps(params, indent=4))
36
37
38def split_and_padding_neighbor(batch_tensor, batch_len):

Callers 1

get_argsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected