MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / main

Function main

imperative/python/megengine/tools/accuracy_shake_var_tree.py:106–126  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

104
105
106def main():
107 parser = argparse.ArgumentParser(
108 description=(
109 "Analyze the outputs of compare_binary_iodump.py"
110 "Should save the outputs of compare_binary_iodump.py"
111 "as a file"
112 ),
113 formatter_class=argparse.ArgumentDefaultsHelpFormatter,
114 )
115 parser.add_argument(
116 "filename", help="file which save the outputs of compare_binary_iodump.py"
117 )
118 args = parser.parse_args()
119
120 parse(args.filename)
121
122 print("varnode root:")
123 for key, value in varNode.var_node_root_dict.items():
124 print(key)
125 print("detail info:")
126 value.show_src_info()
127
128
129if __name__ == "__main__":

Callers 1

Calls 4

parseFunction · 0.85
printFunction · 0.85
itemsMethod · 0.80
show_src_infoMethod · 0.80

Tested by

no test coverage detected