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

Function XLA_TEST_F

tensorflow/compiler/xla/tests/vector_ops_simple_test.cc:51–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49};
50
51XLA_TEST_F(VecOpsSimpleTest, ExpTenValues) {
52 XlaBuilder builder(TestName());
53 auto x = ConstantR1<float>(
54 &builder, {2.1, -2.6, 2.6, -4.0, 2.1, 2.3, -5.0, -0.9, -2.4, 1.6});
55 Exp(x);
56
57 std::vector<float> expected = {8.1662, 7.4274e-02, 13.4637, 1.8316e-02,
58 8.1662, 9.9742, 6.7379e-03, 4.0657e-01,
59 9.0718e-02, 4.9530};
60
61 ComputeAndCompareR1<float>(&builder, expected, {}, error_spec_);
62}
63
64XLA_TEST_F(VecOpsSimpleTest, ExpManyValues) {
65 for (int count : {63, 64, 65, 127, 128, 129, 17 * 4096}) {

Callers

nothing calls this directly

Calls 15

TestNameFunction · 0.85
MapFunction · 0.85
MakeShapeFunction · 0.85
RemFunction · 0.85
ConsumeValueOrDieMethod · 0.80
ErrorSpecClass · 0.70
ExpClass · 0.50
expClass · 0.50
NegFunction · 0.50
PowFunction · 0.50
MaxFunction · 0.50

Tested by

no test coverage detected