| 130 | }; |
| 131 | |
| 132 | TEST_F(FunctionTest, XTimesTwo) { |
| 133 | Create(test::function::XTimesTwo(), {{"T", DT_FLOAT}}); |
| 134 | auto x = test::AsTensor<float>({1, 2, 3, 4}); |
| 135 | Tensor y; |
| 136 | Run({x}, {&y}); |
| 137 | test::ExpectTensorEqual<float>(y, test::AsTensor<float>({2, 4, 6, 8})); |
| 138 | } |
| 139 | |
| 140 | TEST_F(FunctionTest, WXPlusB) { |
| 141 | Create(test::function::WXPlusB(), {{"T", DT_FLOAT}}); |
nothing calls this directly
no test coverage detected