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

Function apply_on_var_node

imperative/src/impl/ops/rnn.cpp:9–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7
8namespace rnn_cell {
9auto apply_on_var_node(const OpDef& def, const VarNodeArray& inputs) {
10 auto&& op = static_cast<const RNNCell&>(def);
11 mgb_assert(inputs.size() == 6);
12 return opr::RNNCell::make(
13 inputs[0], inputs[1], inputs[2], inputs[3], inputs[4], inputs[5],
14 op.param());
15}
16OP_TRAIT_REG(RNNCell, RNNCell).apply_on_var_node(apply_on_var_node).fallback();
17} // namespace rnn_cell
18

Callers 11

init_graph_rtFunction · 0.50
runMethod · 0.50
run_apply_on_var_nodeMethod · 0.50
OpTraitRegistryClass · 0.50
make_backward_graphMethod · 0.50
MiniGraphMethod · 0.50
dumpMethod · 0.50
compileMethod · 0.50
apply_transformationMethod · 0.50
apply_transformationMethod · 0.50

Calls 6

makeFunction · 0.70
sizeMethod · 0.45
paramMethod · 0.45
owner_oprMethod · 0.45
nodeMethod · 0.45
outputMethod · 0.45

Tested by 2

runMethod · 0.40
run_apply_on_var_nodeMethod · 0.40