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

Method extend_netinfo

tools/gen_header_for_bin_reduce.py:63–72  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

61 return cls._megengine_root_cache
62
63 def extend_netinfo(self, data):
64 self._has_netinfo = True
65 if "hash" not in data:
66 self._file_without_hash = True
67 else:
68 self._graph_hashes.add(str(data["hash"]))
69 for i in data["dtypes"]:
70 self._dtypes.add(i)
71 for i in data["opr_types"]:
72 self._oprs.add(i)
73
74 def extend_midout(self, fname):
75 self._midout_files.append(fname)

Callers 1

mainFunction · 0.95

Calls 2

strFunction · 0.85
addMethod · 0.45

Tested by

no test coverage detected