y = x */
| 59 | |
| 60 | /* y = x */ |
| 61 | TEST_F(TestOprLoopElemwiseGrad, Identity) { |
| 62 | desc_maker = [this](LoopDesc& desc) { |
| 63 | auto x = desc.add_input(this->x); |
| 64 | desc.set_loop_condition(desc.get_counter_var() < 0); |
| 65 | desc.add_output(x, OutputMode::LAST); |
| 66 | }; |
| 67 | check([](float) { return 1.f; }); |
| 68 | } |
| 69 | |
| 70 | /* y = sum(x, 1 <= i <= N) */ |
| 71 | TEST_F(TestOprLoopElemwiseGrad, UpdateWithSimpleSum) { |
nothing calls this directly
no test coverage detected