MCPcopy Create free account
hub / github.com/zai-org/CodeGeeX / parse_opt

Function parse_opt

codegeex/paddle/pt_to_pdparams.py:29–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27
28
29def parse_opt():
30 parser = argparse.ArgumentParser()
31 parser.add_argument(
32 "--pt",
33 type=str,
34 required=True,
35 help="Path to pt checkpoint."
36 )
37 parser.add_argument(
38 "--pdparams",
39 type=str,
40 required=True,
41 help="Path to pdparams checkpoint."
42 )
43 opt = parser.parse_args()
44 return opt
45
46
47def main(opt):

Callers 1

pt_to_pdparams.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected