| 29 | class LogTest : public ClientLibraryTestBase {}; |
| 30 | |
| 31 | XLA_TEST_F(LogTest, LogZeroValues) { |
| 32 | XlaBuilder builder(TestName()); |
| 33 | auto x = ConstantR3FromArray3D<float>(&builder, Array3D<float>(3, 0, 0)); |
| 34 | Log(x); |
| 35 | |
| 36 | ComputeAndCompareR3<float>(&builder, Array3D<float>(3, 0, 0), {}, |
| 37 | ErrorSpec(0.0001)); |
| 38 | } |
| 39 | |
| 40 | TEST_F(LogTest, LogTenValues) { |
| 41 | std::vector<float> input = {-0.0, 1.0, 2.0, -3.0, -4.0, |