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

Method getMgbAttributes

imperative/tablegen/helper.h:143–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141 }
142
143 std::vector<NamedAttribute> getMgbAttributes() const {
144 std::vector<NamedAttribute> ret;
145 for (auto&& i : getAttributes()) {
146 if (isa<MgbAttrWrapperBase>(i.attr)) {
147 ret.push_back(i);
148 }
149 }
150 return ret;
151 }
152 std::vector<NamedAttribute> getExtraArguments() const {
153 std::vector<NamedAttribute> ret;
154 auto&& dag = getDef().getValueAsDag("extraArguments");

Callers 8

emitMethod · 0.80
emit_classMethod · 0.80
emit_py_initMethod · 0.80
emit_py_getsettersMethod · 0.80
emitMethod · 0.80
emit_headerMethod · 0.80
emit_tpl_splMethod · 0.80

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected