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

Method classof

imperative/tablegen/helper.h:261–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259
260public:
261 static bool classof(const Operator* op) {
262 return op->getDef().isSubClassOf("MgbHashableOpMixin");
263 }
264
265 std::string getHashFunctionTemplate() const {
266 if (auto f = getDef().getValueAsOptionalString("hashFunction")) {

Callers

nothing calls this directly

Calls 1

getDefMethod · 0.80

Tested by

no test coverage detected