| 335 | void scn_do_execute() override {} |
| 336 | |
| 337 | static VarNode* grad( |
| 338 | OperatorNodeBase* opr, size_t wrt_idx, const VarNodeArray& out_grad) { |
| 339 | MGB_MARK_USED_VAR(out_grad); |
| 340 | auto&& info = opr->cast_final_safe<GradProxy>().m_grad.at(wrt_idx); |
| 341 | return info.grad; |
| 342 | } |
| 343 | |
| 344 | class _RegGrad { |
| 345 | static _RegGrad ins; |