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

Function _get_build_dir

imperative/python/megengine/utils/custom_op_tools.py:167–173  ·  view source on GitHub ↗
(name: str)

Source from the content-addressed store, hash-verified

165
166
167def _get_build_dir(name: str) -> str:
168 custom_op_root_dir = os.environ.get(ev_custom_op_root_dir)
169 if custom_op_root_dir is None:
170 custom_op_root_dir = _get_default_build_root()
171
172 build_dir = os.path.join(custom_op_root_dir, name)
173 return build_dir
174
175
176#####################################################################

Callers 1

buildFunction · 0.85

Calls 3

_get_default_build_rootFunction · 0.85
joinMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected