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

Function TEST_F

tensorflow/compiler/xla/tests/transpose_test.cc:63–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63TEST_F(TransposeTest, Transpose2x2) {
64 XlaBuilder builder("Transpose");
65 auto lhs = ConstantR2<float>(&builder, {
66 {1.0, 2.0},
67 {3.0, 4.0},
68 });
69 Transpose(lhs, {1, 0});
70
71 Array2D<float> expected({{1.0f, 3.0f}, {2.0f, 4.0f}});
72
73 ComputeAndCompareR2<float>(&builder, expected, {}, error_spec_);
74}
75
76XLA_TEST_F(TransposeTest, Transpose0x2x3_2x3x0) {
77 XlaBuilder builder("Transpose");

Callers

nothing calls this directly

Calls 3

MakeLinspaceArray2DFunction · 0.85
ErrorSpecClass · 0.70
TransposeFunction · 0.50

Tested by

no test coverage detected