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

Method _write_hash

tools/gen_header_for_bin_reduce.py:215–223  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

213 self._write_def("MEGDNN_DISABLE_FLOAT16", 1)
214
215 def _write_hash(self):
216 if self._file_without_hash:
217 print(
218 "WARNING: network info has no graph hash. Using json file "
219 "generated by MegBrain >= 7.28.0 is recommended"
220 )
221 else:
222 defs = "ULL,".join(self._graph_hashes) + "ULL"
223 self._write_def("MGB_BINREDUCE_GRAPH_HASHES", defs)
224
225 def _write_def(self, name, val):
226 if isinstance(val, list):

Callers 1

generateMethod · 0.95

Calls 3

_write_defMethod · 0.95
printFunction · 0.85
joinMethod · 0.80

Tested by

no test coverage detected