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

Function make_backward_graph

imperative/src/impl/subgraph_detail.cpp:167–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165}
166
167EncodedSubgraph make_backward_graph(
168 const OpDef& def, const SmallVector<LogicalTensorDesc>& inputs,
169 const SmallVector<bool>& input_requires_grad,
170 const SmallVector<bool>& output_has_grad) {
171 auto forward_graph = OpDef::make_forward_graph(def, inputs);
172 return make_backward_graph_from_forward(
173 forward_graph, inputs, input_requires_grad, output_has_grad);
174}
175
176EncodedSubgraph make_from_computing_graph(
177 const VarNodeArray& inputs, const VarNodeArray& outputs) {

Callers 1

Calls 2

make_forward_graphFunction · 0.85

Tested by

no test coverage detected