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

Method path

imperative/python/megengine/utils/profiler.py:107–114  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

105
106 @property
107 def path(self):
108 if len(self._formats) == 0:
109 format = "<FORMAT>"
110 elif len(self._formats) == 1:
111 format = self._formats[0]
112 else:
113 format = "{" + ",".join(self._formats) + "}"
114 return self.format_path(self._path, self._pid, format)
115
116 @property
117 def directory(self):

Callers

nothing calls this directly

Calls 2

format_pathMethod · 0.95
joinMethod · 0.80

Tested by

no test coverage detected