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

Function XLA_TEST_F

tensorflow/compiler/xla/tests/triangular_solve_test.cc:101–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101XLA_TEST_F(TriangularSolveTest, EmptyArrays) {
102 XlaBuilder builder(TestName());
103
104 XlaOp a, b;
105 auto a_data =
106 CreateR2Parameter<float>(Array2D<float>(0, 0), 0, "a", &builder, &a);
107 auto b_data =
108 CreateR2Parameter<float>(Array2D<float>(0, 10), 1, "b", &builder, &b);
109 TriangularSolve(a, b,
110 /*left_side=*/true, /*lower=*/true,
111 /*unit_diagonal=*/false,
112 /*transpose_a=*/TriangularSolveOptions::TRANSPOSE);
113
114 ComputeAndCompareR2<float>(&builder, Array2D<float>(0, 10),
115 {a_data.get(), b_data.get()});
116}
117
118XLA_TEST_F(TriangularSolveTest, SimpleRightLowerTranspose) {
119 XlaBuilder builder(TestName());

Callers

nothing calls this directly

Calls 15

TestNameFunction · 0.85
TriangularSolveFunction · 0.85
AValsLowerFunction · 0.85
AValsUpperFunction · 0.85
AValsLowerUnitDiagonalFunction · 0.85
AValsUpperUnitDiagonalFunction · 0.85
AValsLowerComplexFunction · 0.85
BValsRightComplexFunction · 0.85
AValsUpperComplexFunction · 0.85
BValsLeftComplexFunction · 0.85
BatchDotFunction · 0.85
ConstantR3FromArray3DFunction · 0.85

Tested by

no test coverage detected