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

Function XLA_TEST_F

tensorflow/compiler/xla/client/lib/sorting_test.cc:31–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29using SortingTest = ClientLibraryTestBase;
30
31XLA_TEST_F(SortingTest, TopK3From8Values) {
32 XlaBuilder builder(TestName());
33 auto x =
34 ConstantR1<float>(&builder, {0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0});
35 xla::GetTupleElement(xla::TopK(x, 3), 0);
36 ComputeAndCompareR1<float>(&builder, {7.0, 6.0, 5.0}, {});
37}
38
39XLA_TEST_F(SortingTest, TopK3From8Indices) {
40 XlaBuilder builder(TestName());

Callers

nothing calls this directly

Calls 10

TestNameFunction · 0.85
TopKWithPartitionsFunction · 0.85
TopKFunction · 0.70
GetTupleElementFunction · 0.50
minFunction · 0.50
maxFunction · 0.50
generateFunction · 0.50
beginMethod · 0.45
endMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected