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

Function XLA_TEST_F

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

Source from the content-addressed store, hash-verified

28using ArithmeticTest = ClientLibraryTestBase;
29
30XLA_TEST_F(ArithmeticTest, ArgMinR2Axis0) {
31 XlaBuilder builder(TestName());
32 auto x = ConstantR2<int32>(&builder, {{1, 7, 4}, {6, 3, 5}, {8, 3, 3}});
33 ArgMin(x, S32, /*axis=*/0);
34
35 std::vector<int32> expected = {0, 2, 2};
36 ComputeAndCompareR1<int32>(&builder, expected, {});
37}
38
39XLA_TEST_F(ArithmeticTest, ArgMinR2Axis1) {
40 XlaBuilder builder(TestName());

Callers

nothing calls this directly

Calls 3

TestNameFunction · 0.85
ArgMinFunction · 0.70
ArgMaxFunction · 0.70

Tested by

no test coverage detected