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

Function TEST_F

tensorflow/compiler/xla/reference_util_test.cc:54–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52};
53
54TEST_F(ReferenceUtilTest, TransposeArray2D) {
55 auto result = ReferenceUtil::TransposeArray2D(*matrix_);
56 auto actual_literal = LiteralUtil::CreateR2FromArray2D(*result);
57 LiteralTestUtil::ExpectR2Near<float>({{1.f, 4.f}, {2.f, 5.f}, {3.f, 6.f}},
58 actual_literal, ErrorSpec(0.0001));
59}
60
61TEST_F(ReferenceUtilTest, MatmulArray2D) {
62 Array2D<float> rhs({

Callers

nothing calls this directly

Calls 8

Slice2DFunction · 0.85
FillWithMultiplesMethod · 0.80
FillIotaMethod · 0.80
FillWithYXMethod · 0.80
ErrorSpecClass · 0.70
logClass · 0.50
expClass · 0.50
FillMethod · 0.45

Tested by

no test coverage detected