| 165 | } |
| 166 | |
| 167 | EncodedSubgraph 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 | |
| 176 | EncodedSubgraph make_from_computing_graph( |
| 177 | const VarNodeArray& inputs, const VarNodeArray& outputs) { |
no test coverage detected