MCPcopy Create free account
hub / github.com/XiaoMi/mace / parse_args

Function parse_args

mace/python/tools/encrypt_opencl_codegen.py:123–136  ·  view source on GitHub ↗

Parses command line arguments.

()

Source from the content-addressed store, hash-verified

121
122
123def parse_args():
124 """Parses command line arguments."""
125 parser = argparse.ArgumentParser()
126 parser.add_argument(
127 "--cl_kernel_dir",
128 type=str,
129 default="./mace/ops/opencl/cl/",
130 help="The cl kernels directory.")
131 parser.add_argument(
132 "--output_path",
133 type=str,
134 default="./mace/examples/codegen/opencl/opencl_encrypted_program.cc",
135 help="The path of encrypted opencl kernels.")
136 return parser.parse_known_args()
137
138
139if __name__ == '__main__':

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected