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

Method match

scripts/gdb/xmethods.py:43–50  ·  view source on GitHub ↗
(self, class_type, method_name)

Source from the content-addressed store, hash-verified

41 super().__init__("SmallVectorImplMatcher")
42
43 def match(self, class_type, method_name):
44 if re.match("^megdnn::SmallVector(Impl)?<.*>", class_type.tag):
45 if method_name == "at":
46 return SmallVectorImplWorker_at(class_type.template_argument(0))
47 if method_name == "operator[]":
48 return SmallVectorImplWorker_at(class_type.template_argument(0))
49 if method_name == "size":
50 return SmallVectorImplWorker_size(class_type.template_argument(0))
51
52
53if sys.version_info.major > 2:

Callers 3

is_mge_frameFunction · 0.45
print_mge_frameFunction · 0.45

Tested by

no test coverage detected