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

Function apply_on_var_node

imperative/src/impl/ops/nms.cpp:12–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10
11namespace {
12cg::OperatorNodeBase* apply_on_var_node(const OpDef& def, const VarNodeArray& inputs) {
13 auto&& nms_keep = def.cast_final_safe<NMSKeep>();
14
15 NMSKeepOpr::Param param;
16 param.iou_thresh = nms_keep.iou_thresh;
17 param.max_output = nms_keep.max_output;
18
19 OperatorNodeConfig config{nms_keep.make_name()};
20
21 return NMSKeepOpr::make(inputs[0], param, config).node()->owner_opr();
22}
23
24OP_TRAIT_REG(NMSKeep, NMSKeep, NMSKeepOpr)
25 .apply_on_var_node(apply_on_var_node)

Callers

nothing calls this directly

Calls 4

makeFunction · 0.70
make_nameMethod · 0.45
owner_oprMethod · 0.45
nodeMethod · 0.45

Tested by

no test coverage detected