! * \param var the vars whose grads should be overwritten * \param grad the vars to provide grad * \brief return a placeholder scalar var to get grad w.r.t. inputs */
| 325 | * \brief return a placeholder scalar var to get grad w.r.t. inputs |
| 326 | */ |
| 327 | static SymbolVar make(ComputingGraph* graph, GradInfoArray&& grad) { |
| 328 | return graph->insert_opr(std::make_unique<GradProxy>(graph, std::move(grad))) |
| 329 | ->output(0); |
| 330 | } |
| 331 | |
| 332 | private: |
| 333 | GradInfoArray m_grad; |
no test coverage detected