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

Function apply_on_var_node

imperative/src/impl/ops/cambricon_runtime.cpp:11–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9namespace cambricon_runtime {
10
11auto apply_on_var_node(const OpDef& def, const VarNodeArray& inputs) {
12 auto&& op = static_cast<const CambriconRuntime&>(def);
13 SymbolVarArray symbol_var_inputs(inputs.begin(), inputs.end());
14 OperatorNodeConfig config{op.make_name()};
15 return opr::CambriconRuntimeOpr::make(
16 op.buf.c_str(), op.buf_size, op.symbol, symbol_var_inputs,
17 op.tensor_dim_mutable, config);
18}
19OP_TRAIT_REG(CambriconRuntime, CambriconRuntime)
20 .apply_on_var_node(apply_on_var_node)
21 .fallback();

Callers

nothing calls this directly

Calls 4

makeFunction · 0.70
beginMethod · 0.45
endMethod · 0.45
make_nameMethod · 0.45

Tested by

no test coverage detected