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

Function apply_on_var_node

imperative/src/impl/ops/warp_perspective.cpp:10–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8namespace {
9namespace warp_perspective_backward_data {
10auto apply_on_var_node(const OpDef& def, const VarNodeArray& inputs) {
11 mgb_assert(inputs.size() == 3);
12 auto&& op = static_cast<const WarpPerspectiveBackwardData&>(def);
13 OperatorNodeConfig config{op.make_name()};
14 return opr::WarpPerspectiveBackwardData::make(
15 inputs[0], inputs[1], inputs[2], op.param(), config);
16}
17
18OP_TRAIT_REG(WarpPerspectiveBackwardData, WarpPerspectiveBackwardData)
19 .apply_on_var_node(apply_on_var_node)

Callers

nothing calls this directly

Calls 4

makeFunction · 0.70
sizeMethod · 0.45
make_nameMethod · 0.45
paramMethod · 0.45

Tested by

no test coverage detected