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

Method operator/

src/core/impl/graph/symbol_var.cpp:95–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95SymbolVar SymbolVar::operator/(const SymbolVar& rhs) const {
96 if (dtype().category() == DTypeCategory::INT &&
97 rhs.dtype().category() == DTypeCategory::INT) {
98 return opr::floor_div(*this, rhs);
99 }
100 return opr::div(*this, rhs);
101}
102
103SymbolVar SymbolVar::operator<(const SymbolVar& rhs) const {
104 return opr::less_than(*this, rhs);

Callers

nothing calls this directly

Calls 4

divFunction · 0.85
categoryMethod · 0.80
floor_divFunction · 0.50
dtypeMethod · 0.45

Tested by

no test coverage detected