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

Function is_samt_st

imperative/src/impl/ops/utility.cpp:839–846  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

837}
838
839auto is_samt_st(const OpDef& def, const OpDef& another) {
840 if (!another.same_type<JITFusionOp>()) {
841 return false;
842 }
843 auto& lhs = def.cast_final_safe<JITFusionOp>();
844 auto& rhs = another.cast_final_safe<JITFusionOp>();
845 return lhs.op->is_same(*rhs.op);
846}
847
848EncodedSubgraph make_backward_graph(
849 const OpDef& def, const SmallVector<LogicalTensorDesc>& inputs,

Callers

nothing calls this directly

Calls 1

is_sameMethod · 0.45

Tested by

no test coverage detected