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

Method do_make_node_prop

src/opr/impl/loop/impl.cpp:376–384  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

374}
375
376cg::OperatorNodeBase::NodeProp* LoopImpl::InputMaker::do_make_node_prop() const {
377 auto prop = Super::do_make_node_prop();
378 if (m_param.has_assign) {
379 prop->add_flag(NodeProp::Flag::IMPURE_FUNC);
380 } else {
381 prop->add_flag(NodeProp::Flag::IMPURE_OUTPUT_MEM_PLAN);
382 }
383 return prop;
384}
385
386void LoopImpl::InputMaker::init_output_mem_plan(bool dynamic) {
387 if (!m_param.has_assign) {

Callers

nothing calls this directly

Calls 2

reset_dep_typeMethod · 0.80
do_make_node_propFunction · 0.70

Tested by

no test coverage detected