MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / parse_args

Function parse_args

tools/get_op_list.py:27–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25
26
27def parse_args():
28 parser = argparse.ArgumentParser()
29 parser.add_argument(
30 '--model_dir',
31 type=str,
32 default="",
33 help='Directory of the inference models that named with pdmodel.',
34 )
35 parser.add_argument(
36 '--op_list',
37 type=str,
38 default="",
39 help='List of ops like "conv2d;pool2d;relu".',
40 )
41 return parser.parse_args()
42
43
44def get_model_ops(model_file, ops_set):

Callers 1

get_op_list.pyFile · 0.70

Calls 1

parse_argsMethod · 0.45

Tested by

no test coverage detected