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

Function TEST

tensorflow/compiler/xla/array_test.cc:25–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23namespace {
24
25TEST(ArrayTest, UninitializedDimsCtor) {
26 Array<int> uninit({2, 3});
27 EXPECT_EQ(uninit.num_dimensions(), 2);
28 EXPECT_EQ(uninit.dim(0), 2);
29 EXPECT_EQ(uninit.dim(1), 3);
30 EXPECT_EQ(uninit.num_elements(), 6);
31}
32
33TEST(ArrayTest, FillCtor) {
34 Array<int> fullof7({1, 2, 3}, 7);

Callers

nothing calls this directly

Calls 13

num_dimensionsMethod · 0.80
FillWithMultiplesMethod · 0.80
UpdateSliceMethod · 0.80
dimMethod · 0.45
num_elementsMethod · 0.45
FillMethod · 0.45
dataMethod · 0.45
ToStringMethod · 0.45
EachMethod · 0.45
SliceMethod · 0.45
dimensionsMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected