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

Function apply_on_var_node

imperative/src/impl/ops/specializations.cpp:45–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45auto apply_on_var_node(const OpDef& def, const VarNodeArray& inputs) {
46 auto&& ds = static_cast<const Dimshuffle&>(def);
47 OperatorNodeConfig config{ds.make_name()};
48 return opr::Dimshuffle::make(inputs[0], ds.pattern, 0UL, config);
49}
50
51std::tuple<SmallVector<LogicalTensorDesc>, bool> infer_output_attrs_fallible(
52 const OpDef& def, const SmallVector<LogicalTensorDesc>& inputs) {

Callers

nothing calls this directly

Calls 10

makeFunction · 0.70
make_nameMethod · 0.45
push_backMethod · 0.45
owner_oprMethod · 0.45
nodeMethod · 0.45
paramMethod · 0.45
nameMethod · 0.45
sizeMethod · 0.45
enumvMethod · 0.45
usable_outputMethod · 0.45

Tested by

no test coverage detected