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

Method mixin_init_output_comp_node

src/core/impl/graph/operator_node.cpp:513–519  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

511/* ===================== mixins::SingleCNOperatorNode ===================== */
512
513void mixin::SingleCNOperatorNode::mixin_init_output_comp_node(OperatorNodeBase& opr) {
514 auto cn = mixin_infer_output_comp_node(
515 opr, opr.node_prop().contain(NodeProp::Flag::CROSS_COMP_NODE_MEMORY));
516 for (auto i : opr.output())
517 i->comp_node(cn);
518 opr.on_output_comp_node_stream_changed();
519}
520
521CompNode mixin::SingleCNOperatorNode::mixin_infer_output_comp_node(
522 const OperatorNodeBase& opr, bool cross_mem) {

Callers

nothing calls this directly

Calls 4

containMethod · 0.45
outputMethod · 0.45
comp_nodeMethod · 0.45

Tested by

no test coverage detected