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

Method do_make_node_prop

imperative/src/impl/opr_utility.cpp:90–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90cg::OperatorNodeBase::NodeProp* InputCallback::do_make_node_prop() const {
91 NodeProp* prop = Super::do_make_node_prop();
92 prop->add_flag(NodeProp::Flag::NO_AUTOMATIC_DUP);
93 SmallVector<NodeProp::DepType> dep_types(
94 input().size(), NodeProp::DepType::DEV_COMP_ORDER);
95 prop->reset_dep_type(input(), dep_types);
96 return prop;
97}
98
99void InputCallback::scn_do_execute() {
100 auto dev_tensor = m_callback();

Callers

nothing calls this directly

Calls 4

reset_dep_typeMethod · 0.80
do_make_node_propFunction · 0.50
sizeMethod · 0.45
get_infer_typeMethod · 0.45

Tested by

no test coverage detected