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

Method init_output_comp_node

imperative/src/impl/opr_utility.cpp:237–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235void NopCallback::on_output_comp_node_stream_changed() {}
236
237void NopCallback::init_output_comp_node() {
238 auto cn = config().get_single_comp_node();
239 mgb_assert(cn.valid());
240 output(0)->comp_node(cn);
241}
242
243cg::OperatorNodeBase::NodeProp* NopCallback::do_make_node_prop() const {
244 NodeProp* prop = Super::do_make_node_prop();

Callers 2

insert_oprMethod · 0.45
insert_oprMethod · 0.45

Calls 5

comp_nodeFunction · 0.85
get_single_comp_nodeMethod · 0.80
has_comp_node_setMethod · 0.80
validMethod · 0.45
comp_nodeMethod · 0.45

Tested by

no test coverage detected