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

Function TEST

tensorflow/compiler/xla/array4d_test.cc:36–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36TEST(Array4dTest, UninitializedDimsCtor) {
37 Array4D<int> empty(2, 3, 4, 5);
38 EXPECT_EQ(empty.n1(), 2);
39 EXPECT_EQ(empty.n2(), 3);
40 EXPECT_EQ(empty.n3(), 4);
41 EXPECT_EQ(empty.n4(), 5);
42 EXPECT_EQ(empty.num_elements(), 120);
43}
44
45TEST(Array4dTest, FillCtor) {
46 Array4D<int> fullof7(2, 3, 4, 5, 7);

Callers

nothing calls this directly

Calls 15

Array4DLinearIndexFunction · 0.85
matrixFunction · 0.85
n4Method · 0.80
FillWithMultiplesMethod · 0.80
FillWithYXMethod · 0.80
FillWithPZMethod · 0.80
n1Method · 0.45
n2Method · 0.45
n3Method · 0.45
num_elementsMethod · 0.45
EachMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected