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

Function apply_on_var_node

imperative/src/impl/ops/custom_opdef.cpp:202–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200}
201
202VarNodeArray apply_on_var_node(const OpDef& def, const cg::VarNodeArray& inputs) {
203 auto&& op = static_cast<const CustomOpDef&>(def);
204 OperatorNodeConfig config;
205 VarNodeArray outputs =
206 opr::CustomOpNode::make(op.impl(), inputs, op.param(), config);
207 return outputs;
208}
209
210std::tuple<SmallVector<LogicalTensorDesc>, bool> infer_output_attrs_fallible(
211 const OpDef& def, const SmallVector<LogicalTensorDesc>& inputs) {

Callers

nothing calls this directly

Calls 3

makeFunction · 0.70
implMethod · 0.45
paramMethod · 0.45

Tested by

no test coverage detected