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

Method __call__

dnn/scripts/gen_tablegen.py:25–31  ·  view source on GitHub ↗
(self, fout, defs)

Source from the content-addressed store, hash-verified

23 _const = None
24
25 def __call__(self, fout, defs):
26 super().__call__(fout)
27 self._write("// %s", self._get_header())
28 self._write("#ifndef MGB_PARAM")
29 self._write("#define MGB_PARAM")
30 self._process(defs)
31 self._write("#endif // MGB_PARAM")
32
33 def _ctype2attr(self, ctype, value):
34 if ctype == "uint32_t":

Callers

nothing calls this directly

Calls 3

_writeMethod · 0.80
_get_headerMethod · 0.80
_processMethod · 0.80

Tested by

no test coverage detected