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

Function make_backward_graph

imperative/src/impl/ops/utility.cpp:132–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132auto make_backward_graph(
133 const OpDef& def, const SmallVector<LogicalTensorDesc>& inputs,
134 const SmallVector<bool>& input_requires_grad,
135 const SmallVector<bool>& output_has_grad) {
136 Subgraph graph;
137 graph.inputs = {1, 2, 3};
138 graph.outputs = {3};
139 graph.exprs = {};
140 return EncodedSubgraph::make(graph);
141}
142
143OP_TRAIT_REG(FastpathCopy, FastpathCopy)
144 .apply_on_var_node(apply_on_var_node)

Callers 3

init_imperative_rtFunction · 0.50
TESTFunction · 0.50

Calls 5

wrapFunction · 0.85
makeFunction · 0.70
sizeMethod · 0.45
make_nameMethod · 0.45
traitMethod · 0.45

Tested by 1

TESTFunction · 0.40