MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / XLA_TEST_F

Function XLA_TEST_F

tensorflow/compiler/xla/tests/log_test.cc:31–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29class LogTest : public ClientLibraryTestBase {};
30
31XLA_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
40TEST_F(LogTest, LogTenValues) {
41 std::vector<float> input = {-0.0, 1.0, 2.0, -3.0, -4.0,

Callers

nothing calls this directly

Calls 3

TestNameFunction · 0.85
ErrorSpecClass · 0.70
LogFunction · 0.50

Tested by

no test coverage detected