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

Method realpath

src/jit/impl/utils.cpp:210–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208 }
209
210 std::string realpath(const std::string& name) override {
211 mgb_assert(name.find('/') == std::string::npos);
212 return m_workdir + name;
213 }
214
215 void remove(const std::string& name) override {
216 int err = unlink(realpath(name).c_str());

Callers 6

_write_elemwise_modesMethod · 0.80
mainFunction · 0.80
_get_default_build_rootFunction · 0.80
__init__Method · 0.80
compile_and_loadMethod · 0.80

Calls 1

findMethod · 0.45

Tested by

no test coverage detected