| 29 | using SortingTest = ClientLibraryTestBase; |
| 30 | |
| 31 | XLA_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 | |
| 39 | XLA_TEST_F(SortingTest, TopK3From8Indices) { |
| 40 | XlaBuilder builder(TestName()); |
nothing calls this directly
no test coverage detected