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

Method get_megengine_root

tools/gen_header_for_bin_reduce.py:56–61  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

54
55 @classmethod
56 def get_megengine_root(cls):
57 if cls._megengine_root_cache is not None:
58 return cls._megengine_root_cache
59 wd = Path(__file__).resolve().parent.parent
60 cls._megengine_root_cache = str(wd)
61 return cls._megengine_root_cache
62
63 def extend_netinfo(self, data):
64 self._has_netinfo = True

Callers 3

_write_elemwise_modesMethod · 0.95
_write_midoutMethod · 0.95
mainFunction · 0.80

Calls 1

strFunction · 0.85

Tested by

no test coverage detected