| 17 | mType = LINEAR; |
| 18 | } |
| 19 | virtual std::vector<Express::VARP> onGrad(Express::EXPRP expr, |
| 20 | const std::vector<Express::VARP>& backwardOutput) override { |
| 21 | std::vector<Express::VARP> result(1, nullptr); |
| 22 | result[0] = backwardOutput[0]; |
| 23 | return result; |
| 24 | } |
| 25 | }; |
| 26 | static void _create() { |
| 27 | static ZeroGrad _c; |
no outgoing calls