| 442 | #endif |
| 443 | |
| 444 | TEST_F(MathGradTest, Error_Reporting) { |
| 445 | auto x = test::AsTensor<float>({-3.f}); |
| 446 | auto dx = test::AsTensor<float>({3.f}); |
| 447 | Tensor donotcare; |
| 448 | HasError(Unary("TestOpWithNoGrad", x, &donotcare), |
| 449 | "No gradient defined for op: TestOpWithNoGrad"); |
| 450 | } |
| 451 | |
| 452 | TEST_F(MathGradTest, Abs) { |
| 453 | auto x = test::AsTensor<float>({-3.f, -2.f, -1.f, 1.f, 2.f, 3.f}, |
nothing calls this directly
no test coverage detected